Part Number Hot Search : 
CMHZ4695 24010 CENW57 5ACD2T HD6433 D100B 3USB3 BF1211WR
Product Description
Full Text Search
 

To Download KSZ8995FQ Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  ks8995ma/fq integrated 5-port 10/100 managed switch rev. 3.0 micrel inc. ? 2180 fortune drive ? san jose, ca 95131 ? usa ? tel +1 ( 408 ) 944-0800 ? fax + 1 (408) 474-1000 ? http://www.micrel.com october 2011 m9999-102611-3.0 general description the ks8995ma/fq is a highly-integrated layer 2 managed switch with optimized bill of materials (bom) cost for low port count, cost-sensitive 10/100mbps switch systems with both copper and optic fiber media. it also provides an extensive feature set such as tag/port- based vlan, quality of service (qos) priority, management, mib counters, dual mii interfaces and cpu control/data interfaces to e ffectively address both current and emerging fast ethernet applications. the ks8995ma/fq contains five 10/100 transceivers with patented mixed-signal low-power technology, five media access control (mac) units, a high-speed non-blocking switch fabric, a dedicated address lookup engine, and an on-chip frame buffer memory. all phy units support 10base-t and 100base-tx. in addition, two of the phy units support 100base-fx on ports 4 and 5 for ksz8995ma, two of the phy units support 100base-fx on ports 3 and 4 for KSZ8995FQ. datasheets and support documentation can be found on micrel?s web site at: www.micrel.com . functional diagram
micrel, inc. ks8995ma/fq october 2011 2 m9999-102611-3.0 features ? integrated switch with five macs and five fast ethernet transceivers fully-compliant to ieee 802.3u standard ? shared memory based switch fabric with fully non- blocking configuration ? 1.4gbps high-performance memory bandwidth ? 10base-t, 100base-tx, and 100base-fx modes ? dual mii configuration: mii-switch (mac or phy mode mii) and mii-p5 (phy mode mii). ? ieee 802.1q tag-based vlan (16 vlans, full-range vid) for dmz port, wan/la n separation or inter- vlan switch links ? vlan id tag/untag options, per-port basis ? programmable rate limiting 0mbps to 100mbps, ingress and egress port, rate options for high and low priority, per-port basis in 32kbps increments ? flow control or drop packet rate limiting (ingress port) ? integrated mib counters for fully-compliant statistics gathering, 34 mib counters per port ? enable/disable option for huge frame size up to 1916 bytes per frame ? igmp v1/v2 snooping for multicast packet filtering ? special tagging mode to send cpu info on ingress packet?s port value ? spi slave (complete) and mdio (mii phy only) serial management interface for control of register configuration ? mac-id based security lock option ? control registers configurable on-the-fly (port- priority, 802.1p/d/q, an...) ? cpu read access to mac forwarding table entries ? 802.1d spanning tree protocol ? port mirroring/monitoring/sniffing: ingress and/or egress traffic to any port or mii ? broadcast storm protection with % control ? global and per-port basis ? optimization for fiber-t o-copper media conversion ? full-chip hardware power-down support (register configuration not saved) ? per-port based software power-save on phy (idle link detection, register configuration preserved) ? qos/cos packets prioritization supports: ? per port, 802.1p and diffserv based ? 802.1p/q tag insertion or removal on a per-port basis (egress) ? mdc and mdi/o interface support to access the mii phy control registers (not all control registers) ? mii local loopback support ? on-chip 64kbyte memory for frame buffering (not shared with 1k unicast address table) ? wire-speed reception and transmission ? integrated look-up engine with dedicated 1k mac addresses ? full duplex ieee 802.3x and half-duplex back pressure flow control ? comprehensive led support ? 7-wire sni support for legacy mac interface ? automatic mdi/mdi-x cros sover for plug-and-play ? disable automatic mdi/mdi-x option ? low power: ? core: 1.8v ? digital i/o: 3.3v ? analog i/o: 3.3v ? 0.18m cmos technology ? temperature ranges: ? commercial: 0c to +70c ? industrial: ?40c to +85c ? available in 128-pin pqfp package applications ? broadband gateway/firewall/vpn ? integrated dsl or cable modem multi-port router ? wireless lan access point plus gateway ? home networking expansion ? standalone 10/100 switch ? hotel/campus/mxu gateway ? enterprise voip gateway/phone ? fttx customer premise equipment ? managed media converter
micrel, inc. ks8995ma/fq october 2011 3 m9999-102611-3.0 ordering information part number temperature range package standard pb (lead)-free ks8995ma ksz8995ma 0c to + 70c 128-pin pqfp ks8995fq KSZ8995FQ 0c to + 70c 128-pin pqfp ks8995mai ksz8995mai ? 40c to + 85c 128-pin pqfp ks8995fqi KSZ8995FQi ? 40c to + 85c 128-pin pqfp revision history revision date summary of changes 2.0 10/10/03 created. 2.1 10/30/03 editorial changes on electrical characteristics. 2.2 04/01/04 editorial changes on the ttl in put and output electrical characteristics. 2.3 01/19/05 insert recommended reset ci rcuit, pg. 70. editorial, pg. 36. 2.4 04/13/05 changed vddio to 3.3v. changed jitter to 16 ns max. 2.5 02/06/06 added pb-free option for industrial version. 2.6 07/12/06 add a note for vlan table write, improve the timing diagram for mii interface, update pin description for pcrs, pcol, etc. and update the description of the register bits for the loopback, etc. 2.7 06/01/07 add the package thermal information in the oper ating rating and the transformer power consumption information in the electrical characteristics note. 2.8 03/20/08 add KSZ8995FQ information and pin description. 2.9 09/15/08 add KSZ8995FQ block diagram and descriptions for revision id and led mode. 3.0 10/26/11 update some descriptions for vddat voltage mdi/mdix bits of registers, updat e equation of the broadcast storm protection, correct typo.
micrel, inc. ks8995ma/fq october 2011 4 m9999-102611-3.0 contents system level applications ............................................................................................................................... .................. 11 pin confi guration ............................................................................................................. ................................................... 13 pin description ? by number ............................................................................................................................... .............. 14 pin description ? by name ...................................................................................................................... .......................... 20 introduction .................................................................................................................. ....................................................... 26 functional overview: physi cal layer tr ansceiver ............................................................................... ........................... 26 100base-tx tr ansmit ........................................................................................................... .......................................... 26 100base-tx re ceive ............................................................................................................ .......................................... 26 pll clock synthesizer ......................................................................................................... ............................................. 26 scrambler/de-scrambler (100base-tx only) ...................................................................................... ........................... 27 100base-fx o peration .......................................................................................................... .......................................... 27 100base-fx signal detection ................................................................................................... ...................................... 27 100base-fx far end f ault ...................................................................................................... ......................................... 27 10base-t tr ansmit ............................................................................................................. ............................................. 27 10base-t receive .............................................................................................................. ............................................. 27 power mana gement .............................................................................................................. ............................................ 27 mdi/mdi-x auto crossover ...................................................................................................... ........................................ 27 auto-negotia tion .............................................................................................................. ................................................. 28 functional overview: switch core .............................................................................................. ...................................... 29 address look-up ............................................................................................................... ............................................... 29 learning ...................................................................................................................... ...................................................... 29 migration ..................................................................................................................... ...................................................... 29 aging ......................................................................................................................... ........................................................ 29 forwarding .................................................................................................................... .................................................... 29 switching engine .............................................................................................................. ................................................ 29 media access controll er (mac) o peration ....................................................................................... ............................... 30 mii interface operation ....................................................................................................... .............................................. 33 sni interface operation ....................................................................................................... ............................................. 36 advanced functionality ............................................................................................................................... ....................... 36 spanning tree support ......................................................................................................... ............................................ 36 special t agging mo de .......................................................................................................... ............................................ 37 igmp support .................................................................................................................. ................................................. 39 port mirror ing support ........................................................................................................ .............................................. 39 vlan support .................................................................................................................. ................................................. 40 rate limit support ............................................................................................................ ................................................ 40
micrel, inc. ks8995ma/fq october 2011 5 m9999-102611-3.0 configuration interface ....................................................................................................... .............................................. 41 mii management inte rface (miim) ............................................................................................... ..................................... 45 register de scription .......................................................................................................... ................................................. 46 global regi sters .............................................................................................................. .................................................... 47 register 0 (0x00): chip id0 ................................................................................................... ........................................... 47 register 2 (0x02): global c ontrol 0 ........................................................................................... ....................................... 47 register 4 (0x04): global c ontrol 2 ........................................................................................... ....................................... 49 register 5 (0x05): global c ontrol 3 ........................................................................................... ....................................... 50 register 6 (0x07): global c ontrol 4 ........................................................................................... ....................................... 51 register 7 (0x07): global c ontrol 5 ........................................................................................... ....................................... 51 register 8 (0x08): global c ontrol 6 ........................................................................................... ....................................... 51 register 9 (0x09): global c ontrol 7 ........................................................................................... ....................................... 51 register 10 (0x0a): global cont rol 8 .......................................................................................... ...................................... 52 register 11 (0x0b): global cont rol 9 .......................................................................................... ...................................... 52 port registers ................................................................................................................ ...................................................... 53 register 16 (0x10): port 1 c ontrol 0 .......................................................................................... ....................................... 53 register 32 (0x20): port 2 c ontrol 0 .......................................................................................... ....................................... 53 register 48 (0x30): port 3 c ontrol 0 .......................................................................................... ....................................... 53 register 64 (0x40): port 4 c ontrol 0 .......................................................................................... ....................................... 53 register 80 (0x50): port 5 c ontrol 0 .......................................................................................... ....................................... 53 register 17 (0x11): port 1 c ontrol 1 .......................................................................................... ....................................... 54 register 33 (0x21): port 2 c ontrol 1 .......................................................................................... ....................................... 54 register 49 (0x31): port 3 c ontrol 1 .......................................................................................... ....................................... 54 register 65 (0x41): port 4 c ontrol 1 .......................................................................................... ....................................... 54 register 81 (0x51): port 5 c ontrol 1 .......................................................................................... ....................................... 54 register 18 (0x12): port 1 c ontrol 2 .......................................................................................... ....................................... 54 register 34 (0x22): port 2 c ontrol 2 .......................................................................................... ....................................... 54 register 50 (0x32): port 3 c ontrol 2 .......................................................................................... ....................................... 54 register 66 (0x42): port 4 c ontrol 2 .......................................................................................... ....................................... 54 register 82 (0x52): port 5 c ontrol 2 .......................................................................................... ....................................... 54 register 19 (0x13): port 1 c ontrol 3 .......................................................................................... ....................................... 55 register 35 (0x23): port 2 c ontrol 3 .......................................................................................... ....................................... 55 register 51 (0x33): port 3 c ontrol 3 .......................................................................................... ....................................... 55 register 67 (0x43): port 4 c ontrol 3 .......................................................................................... ....................................... 55 register 83 (0x53): port 5 c ontrol 3 .......................................................................................... ....................................... 55 register 20 (0x14): port 1 c ontrol 4 .......................................................................................... ....................................... 55 register 36 (0x24): port 2 c ontrol 4 .......................................................................................... ....................................... 55
micrel, inc. ks8995ma/fq october 2011 6 m9999-102611-3.0 register 52 (0x34): port 3 c ontrol 4 .......................................................................................... ....................................... 55 register 68 (0x44): port 4 c ontrol 4 .......................................................................................... ....................................... 55 register 84 (0x54): port 5 c ontrol 4 .......................................................................................... ....................................... 55 register 21 (0x15): port 1 c ontrol 5 .......................................................................................... ....................................... 56 register 37 (0x25): port 2 c ontrol 5 .......................................................................................... ....................................... 56 register 53 (0x35): port 3 c ontrol 5 .......................................................................................... ....................................... 56 register 69 (0x45): port 4 c ontrol 5 .......................................................................................... ....................................... 56 register 85 (0x55): port 5 c ontrol 5 .......................................................................................... ....................................... 56 register 22 (0x16): port 1 c ontrol 6 .......................................................................................... ....................................... 56 register 38 (0x26): port 2 c ontrol 6 .......................................................................................... ....................................... 56 register 54 (0x36): port 3 c ontrol 6 .......................................................................................... ....................................... 56 register 70 (0x46): port 4 c ontrol 6 .......................................................................................... ....................................... 56 register 86 (0x56): port 5 c ontrol 6 .......................................................................................... ....................................... 56 register 23 (0x17): port 1 c ontrol 7 .......................................................................................... ....................................... 56 register 39 (0x27): port 2 c ontrol 7 .......................................................................................... ....................................... 56 register 55 (0x37): port 3 c ontrol 7 .......................................................................................... ....................................... 56 register 71 (0x47): port 4 c ontrol 7 .......................................................................................... ....................................... 56 register 87 (0x57): port 5 c ontrol 7 .......................................................................................... ....................................... 56 register 25 (0x19): port 1 c ontrol 9 .......................................................................................... ....................................... 57 register 41 (0x29): port 2 c ontrol 9 .......................................................................................... ....................................... 57 register 57 (0x39): port 3 c ontrol 9 .......................................................................................... ....................................... 57 register 73 (0x49): port 4 c ontrol 9 .......................................................................................... ....................................... 57 register 89 (0x59): port 5 c ontrol 9 .......................................................................................... ....................................... 57 register 26 (0x1a): port 1 c ontrol 10.......................................................................................... ..................................... 57 register 42 (0x2a): port 2 c ontrol 10.......................................................................................... ..................................... 57 register 58 (0x3a): port 3 c ontrol 10.......................................................................................... ..................................... 57 register 74 (0x4a): port 4 c ontrol 10.......................................................................................... ..................................... 57 register 90 (0x5a): port 5 c ontrol 10.......................................................................................... ..................................... 57 register 28 (0x1c): po rt 1 cont rol 12 ......................................................................................... ..................................... 58 register 44 (0x2c): po rt 2 cont rol 12 ......................................................................................... ..................................... 58 register 60 (0x3c): po rt 3 cont rol 12 ......................................................................................... ..................................... 58 register 76 (0x4c): po rt 4 cont rol 12 ......................................................................................... ..................................... 58 register 92 (0x5c): po rt 5 cont rol 12 ......................................................................................... ..................................... 58 register 29 (0x1d): po rt 1 cont rol 13 ......................................................................................... ..................................... 59 register 45 (0x2d): po rt 2 cont rol 13 ......................................................................................... ..................................... 59 register 61 (0x3d): po rt 3 cont rol 13 ......................................................................................... ..................................... 59 register 77 (0x4d): po rt 4 cont rol 13 ......................................................................................... ..................................... 59
micrel, inc. ks8995ma/fq october 2011 7 m9999-102611-3.0 register 93 (0x5d): po rt 5 cont rol 13 ......................................................................................... ..................................... 59 register 30 (0x1e): port 1 status 0 ........................................................................................... ....................................... 60 register 46 (0x2e): port 2 status 0 ........................................................................................... ....................................... 60 register 62 (0x3e): port 3 status 0 ........................................................................................... ....................................... 60 register 78 (0x4e): port 4 status 0 ........................................................................................... ....................................... 60 register 94 (0x5e): port 5 status 0 ........................................................................................... ....................................... 60 register 31 (0x1f): po rt 1 cont rol 14 ......................................................................................... ...................................... 60 register 47 (0x2f): po rt 2 cont rol 14 ......................................................................................... ...................................... 60 register 63 (0x3f): po rt 3 cont rol 14 ......................................................................................... ...................................... 60 register 79 (0x4f): po rt 4 cont rol 14 ......................................................................................... ...................................... 60 register 95 (0x5f): po rt 5 cont rol 14 ......................................................................................... ...................................... 60 advanced contro l registers .................................................................................................... .......................................... 61 register 96 (0x60): tos prio rity control register 0 ........................................................................... ............................. 61 register 97 (0x61): tos prio rity control register 1 ........................................................................... ............................. 61 register 98 (0x62): tos prio rity control register 2 ........................................................................... ............................. 61 register 99 (0x63): tos prio rity control register 3 ........................................................................... ............................. 61 register 100 (0x64): tos prio rity control register 4 .......................................................................... ............................ 61 register 101 (0x65): tos prio rity control register 5 .......................................................................... ............................ 61 register 102 (0x66): tos prio rity control register 6 .......................................................................... ............................ 62 register 103 (0x67): tos prio rity control register 7 .......................................................................... ............................ 62 register 104 (0x68): mac address regi ster 0 ................................................................................... ............................. 62 register 105 (0x69): mac address regi ster 1 ................................................................................... ............................. 62 register 106 (0x6a): mac address regi ster 2 ................................................................................... ............................. 62 register 107 (0x6b): mac address regi ster 3 ................................................................................... ............................. 62 register 108 (0x6c): mac address regi ster 4 ................................................................................... ............................. 62 register 109 (0x6d): mac address regi ster 5 ................................................................................... ............................ 63 register 110 (0x6e): indire ct access control 0 ................................................................................ ................................ 63 register 111 (0x6f): indire ct access control 1 ................................................................................ ................................ 63 register 112 (0x70): indire ct data r egister 8 ................................................................................. ................................. 64 register 113 (0x71): indire ct data r egister 7 ................................................................................. ................................. 64 register 114 (0x72): indire ct data r egister 6 ................................................................................. ................................. 64 register 115 (0x73): indire ct data r egister 5 ................................................................................. ................................. 64 register 116 (0x74): indire ct data r egister 4 ................................................................................. ................................. 64 register 117 (0x75): indire ct data r egister 3 ................................................................................. ................................. 64 register 118 (0x76): indire ct data r egister 2 ................................................................................. ................................. 64 register 119 (0x77): indire ct data r egister 1 ................................................................................. ................................. 64 register 120 (0x78): indire ct data r egister 0 ................................................................................. ................................. 65
micrel, inc. ks8995ma/fq october 2011 8 m9999-102611-3.0 register 121 (0x79): digi tal testing status 0 ................................................................................. .................................. 65 register 122 (0x7a): digi tal testing status 1 ................................................................................. .................................. 65 register 123 (0x7b): digi tal testing control 0 ................................................................................ ................................. 65 register 124 (0x7c): digi tal testing control 1 ................................................................................ ................................. 65 register 125 (0x7d): anal og testing control 0 ................................................................................. ............................... 65 register 126 (0x7e): anal og testing control 1 ................................................................................. ............................... 65 register 127 (0x7f): anal og testing status .................................................................................... ................................. 65 static mac address ............................................................................................................ ................................................ 66 static address t able examples ................................................................................................. ....................................... 67 static address tabl e write examples ........................................................................................... ................................... 67 vlan address .................................................................................................................. ................................................... 68 vlan table re ad example ....................................................................................................... ....................................... 68 vlan table wri te example ...................................................................................................... ........................................ 68 dynamic mac address ........................................................................................................... ............................................ 69 dynamic mac address table read example ........................................................................................ .......................... 69 dynamic mac address ta ble write example ....................................................................................... ........................... 70 mib coun ters .................................................................................................................. ..................................................... 71 for port 2, the base is 0x20, same offset definition (0x20-0x3f) .............................................................. ........................ 72 for port 3, the base is 0x40, same offset definition (0x40-0x5f) .............................................................. ........................ 72 for port 4, the base is 0x60, same offset definition (0x60-0x7f) .............................................................. ........................ 72 mib counter read exampl es ..................................................................................................... ...................................... 73 miim registers ................................................................................................................ ..................................................... 74 absolute maximum ratings (1) .............................................................................................................................. .............. 77 operating ratings (2) .............................................................................................................................. .............................. 77 electrical characteristics (4, 5) .............................................................................................................................. ................ 77 timing diag rams ............................................................................................................... .................................................. 79 reset circuit diagram ......................................................................................................... .............................................. 86 selection of isolat ion transformer ............................................................................................ ........................................ 87 package info rmation ........................................................................................................... ................................................ 88
micrel, inc. ks8995ma/fq october 2011 9 m9999-102611-3.0 list of figures figure 1. br oadband gate way ................................................................................................. ........................................... 11 figure 2. integrat ed broadband router ....................................................................................... ....................................... 11 figure 3. st andalone swit ch ................................................................................................. .............................................. 12 figure 4. using ks8995fq for dual media converter or fiber da isy chain connection ........................................... ....... 12 figure 5. auto negotiation .................................................................................................. ................................................ 28 figure 6. da look-up flowchart ? 1 ............................................................................................................................ ....... 31 figure 7. da resolution flowchart ? stage 2 ..................................................................................................................... 32 figure 8. ks8995ma/fq eeprom configuration ti ming diagr am ................................................................... ................ 43 figure 9. spi wri te data cycle .............................................................................................. ............................................. 44 figure 10. spi r ead data cycle ................................................................................................ ........................................... 44 figure 11. spi mu ltiple write ................................................................................................. ............................................... 45 figure 12. spi mu ltiple read .................................................................................................. .............................................. 45 figure 13. eeprom interface input receive timing diagram ............................................................................................. 79 figure 14. eeprom interface output transmit timi ng diagram .................................................................... ..................... 79 figure 15. sni i nput timing ................................................................................................... ............................................... 80 figure 16. sni ou tput timing .................................................................................................. ............................................. 80 figure 17. mac mode mii timing ? data received from mii ............................................................................................... 81 figure 18. mac mode mii timing ? data transmitte d from mii ........................................................................................... 81 figure 19. phy mode mii timing ? data received from mii ................................................................................................ 82 figure 20. phy mode mii timing ? data transmitte d from mii ............................................................................................ 82 figure 21. spi input timing ................................................................................................... ............................................... 83 figure 22. spi output timing ............................................................................................................................... ................. 84 figure 23. rese t timing ....................................................................................................... ................................................. 85 figure 24. recommend ed reset circuit .......................................................................................... ..................................... 86 figure 25. recommended circuit for in terfacing with cp u/fpga reset ............................................................ ................. 86
micrel, inc. ks8995ma/fq october 2011 10 m9999-102611-3.0 list of tables table 1. mii ? p5 signals (p hy mode) ........................................................................................................ ....................... 34 table 2. mii ? sw signals ............................................................................................................................... .................... 35 table 3. sni signals ........................................................................................................ ................................................... 36 table 5. stpid egress rules (p rocessor to swit ch port 5) .................................................................... ........................... 38 table 6. stpid egress rule s (switch to processor) ........................................................................... ............................... 38 table 7. fid+da look -up in the vlan mode .................................................................................... ................................ 40 table 8. fid+sa look-up in the vl an mode .................................................................................... ................................ 40 table 9. spi connections .................................................................................................... ............................................... 44 table 10. eeprom timi ng parameters ............................................................................................ ................................... 79 table 11. sni timi ng parameters ............................................................................................... .......................................... 80 table 12. mac mode m ii timing parameters ...................................................................................... ................................. 81 table 13. phy mode mii timing parameters ...................................................................................... ................................. 82 table 14. spi input timing para meters ......................................................................................... ....................................... 83 table 15. spi output timing parameters ........................................................................................ ..................................... 84 table 16. reset ti ming parameters ............................................................................................. ........................................ 85 table 17. qualified magnetic vendors .......................................................................................... ........................................ 87
micrel, inc. ks8995ma/fq october 2011 11 m9999-102611-3.0 system level applications figure 1. broadband gateway figure 2. integrated broadband router
micrel, inc. ks8995ma/fq october 2011 12 m9999-102611-3.0 system level applications (continued) figure 3. standalone switch figure 4. using ks8995fq for dual media co nverter or fiber daisy chain connection
micrel, inc. ks8995ma/fq october 2011 13 m9999-102611-3.0 pin configuration 128-pin pqfp
micrel, inc. ks8995ma/fq october 2011 14 m9999-102611-3.0 pin description ? by number pin number pin name type (1) port pin function (2) 1 mdi-xdis lpd 1 ? 5 disable auto mdi/mdi-x. pd (default) = normal operation. pu = disable auto mdi/mdi-x on all ports. 2 gnda gnd analog ground. 3 vddar p 1.8v analog v dd . 4 rxp1 i 1 physical receive signal + (differential). 5 rxm1 i 1 physical receive signal ? (differential). 6 gnda gnd analog ground. 7 txp1 o 1 physical transmit signal + (differential). 8 txm1 o 1 physical transmit signal ? (differential). 9 vddat p 3.3v analog v dd . (2.5v or 3.3v is for b3 and previous chip revision) 10 rxp2 i 2 physical receive signal + (differential). 11 rxm2 i 2 physical receive signal ? (differential). 12 gnda gnd analog ground. 13 txp2 o 2 physical transmit signal + (differential). 14 txm2 o 2 physical transmit signal ? (differential). 15 vddar p 1.8v analog v dd . 16 gnda gnd analog ground. 17 iset set physical transmit output current. pull-down with a 3.01k ? 1% resistor. 18 vddat p 3.3v analog v dd . (2.5v or 3.3v is for b3 and previous chip revision) 19 rxp3 i 3 physical receive signal + (differential). 20 rxm3 i 3 physical receive signal - (differential). 21 gnda gnd analog ground. 22 txp3 o 3 physical transmit signal + (differential). 23 txm3 o 3 physical transmit signal ? (differential). 24 vddat p 3.3v analog v dd . (2.5v or 3.3v is for b3 and previous chip revision) 25 rxp4 i 4 physical receive signal + (differential). 26 rxm4 i 4 physical receive signal - (differential). 27 gnda gnd analog ground. 28 txp4 o 4 physical transmit signal + (differential). 29 txm4 o 4 physical transmit signal ? (differential). 30 gnda gnd analog ground. notes: 1. p = power supply. i = input. o = output. i/o = bidirectional. gnd = ground. ipu = input w/internal pull-up. ipd = input w/internal pull-down. ipd/o = input w/internal pull-down during reset, output pin otherwise. ipu/o = input w/internal pull-up during reset, output pin otherwise. nc = no connect. 2. pu = strap pin pull-up. pd = strap pull-down.
micrel, inc. ks8995ma/fq october 2011 15 m9999-102611-3.0 pin description ? by numbers (continued) pin number pin name type (1) port pin function 31 vddar p 1.8v analog v dd . 32 rxp5 i 5 physical receive signal + (differential). 33 rxm5 i 5 physical receive signal ? (differential). 34 gnda gnd analog ground. 35 txp5 o 5 physical transmit signal + (differential). 36 txm5 o 5 physical transmit signal ? (differential). 37 vddat p 3.3v analog v dd . (2.5v or 3.3v is for b3 and previous chip revision) 38 fxsd5/fxsd3 ipd 5/3 fiber signal detect pin. fxsd5 is for port 5 of the ks8995ma. fxsd3 is for port 3 of the ks8995fq 39 fxsd4 ipd 4 fiber signal detect pin for port 4. 40 gnda gnd analog ground. 41 vddar p 1.8v analog v dd . 42 gnda gnd analog ground. 43 vddar p 1.8v analog v dd . 44 gnda gnd analog ground. 45 mux1 nc factory test pins. mux1 and mux2 should be left unconnected for normal operation. 46 mux2 nc mode mux1 mux2 normal operation nc nc 47 pwrdn_n ipu full-chip power down. active low. 48 reserve nc reserved pin. no connect. 49 gndd gnd digital ground. 50 vddc p 1.8v digital core v dd . 51 pmtxen ipd 5 phy[5] mii transmit enable. 52 pmtxd3 ipd 5 phy[5] mii transmit bit 3. 53 pmtxd2 ipd 5 phy[5] mii transmit bit 2. 54 pmtxd1 ipd 5 phy[5] mii transmit bit 1. 55 pmtxd0 ipd 5 phy[5] mii transmit bit 0. 56 pmtxer ipd 5 phy[5] mii transmit error. 57 pmtxc o 5 phy[5] mii transmit clock. phy mode mii. 58 gndd gnd digital ground. 59 vddio p 3.3v digital v dd for digital i/o circuitry. 60 pmrxc o 5 phy[5] mii receive clock. phy mode mii. note: 1. p = power supply. i = input. o = output. i/o = bidirectional. gnd = ground. ipu = input w/internal pull-up. ipd = input w/internal pull-down. ipd/o = input w/internal pull-down during reset, output pin otherwise. ipu/o = input w/internal pull-up during reset, output pin otherwise. nc = no connect.
micrel, inc. ks8995ma/fq october 2011 16 m9999-102611-3.0 pin description ? by numbers (continued) pin number pin name type (1) port pin function (2) 61 pmrxdv ipd/o 5 phy[5] mii receive data valid. 62 pmrxd3 ipd/o 5 phy[5] mii receive bit 3. strap option: pd (default) = enable flow control; pu = disable flow control. 63 pmrxd2 ipd/o 5 phy[5] mii receive bit 2. strap option: pd (default) = disable back pressure; pu = enable back pressure. 64 pmrxd1 ipd/o 5 phy[5] mii receive bit 1. strap option: pd (default) = drop excessive collision packets; pu = does not drop excessive collision packets. 65 pmrxd0 ipd/o 5 phy[5] mii receive bit 0. strap option: pd (default) = disable aggressive back-off algorithm in half-duplex mode; pu = enable for performance enhancement. 66 pmrxer ipd/o 5 phy[5] mii receive error. strap option: pd (default) = packet size 1518/1522 bytes; pu = 1536 bytes. 67 pcrs ipd/o 5 phy[5] mii carrier sense/strap option for port 4 only. pd (default) = force half-duplex if auto-negotiation is disabled or fails. pu = force full-duplex if auto negotiation is disabled or fails. refer to register 76. 68 pcol ipd/o 5 phy[5] mii collision detect/ strap option for port 4 only. pd (default) = no force flow control, normal operation. pu = force fl ow control. refer to register 66 69 smtxen ipd switch mii transmit enable. 70 smtxd3 ipd switch mii transmit bit 3. 71 smtxd2 ipd switch mii transmit bit 2. 72 smtxd1 ipd switch mii transmit bit 1. 73 smtxd0 ipd switch mii transmit bit 0. 74 smtxer ipd switch mii transmit error. 75 smtxc i/o switch mii transmit clock. i nput in mac mode, output in phy mode mii. 76 gndd gnd digital ground. 77 vddio p 3.3v digital v dd for digital i/o circuitry. 78 smrxc i/o switch mii receive clock. i nput in mac mode, output in phy mode mii. 79 smrxdv ipd/o switch mii receive data valid. 80 smrxd3 ipd/o switch mii receive bit 3. strap option: pd (default) = disable switch mii full-duplex flow control; pu = enable switch mii full-duplex flow control. 81 smrxd2 ipd/o switch mii receive bit 2. strap option: pd (default) = switch mii in full-duplex mode; pu = switch mii in half-duplex mode. notes: 1. p = power supply. i = input. o = output. i/o = bidirectional. gnd = ground. ipu = input w/internal pull-up. ipd = input w/internal pull-down. ipd/o = input w/internal pull-down during reset, output pin otherwise. ipu/o = input w/internal pull-up during reset, output pin otherwise. nc = no connect. 2. pu = strap pin pull-up. pd = strap pull-down.
micrel, inc. ks8995ma/fq october 2011 17 m9999-102611-3.0 pin description ? by numbers (continued) pin number pin name type (1) port pin function (2) 82 smrxd1 ipd/o switch mii receive bit 1. strap option: pd (default) = switch mii in 100mbps mode; pu = switch mii in 10mbps mode. 83 smrxd0 ipd/o switch mii receive bit 0; st rap option: led mode; pd (def ault) = mode 0; pu = mode 1. see ?register 11?. mode 0, link at: 100/full ledx[2,1,0]=0,0,0 100/half ledx[2,1,0]=0,1,0 10/full ledx[2,1,0]=0,0,1 10/half ledx[2,1,0]=0,1,1 mode 1, link at 100/full ledx[2,1,0]=0,1,0 100/half ledx[2,1,0]=0,1,1 10/full ledx[2,1,0]=1,0,0 10/half ledx[2,1,0]=1,0,1 mode 0 mode 1 ledx_2 lnk/act 100lnk/act ledx_1 fulld/col 10lnk/act ledx_0 speed full duplex 84 scol ipd/o switch mii collision detect. 85 scrs ipd/o switch mode carrier sense. 86 sconf1 ipd dual mii configuration pin. for the swit ch mii, ksz8995ma supports both mac mode and phy mode, KSZ8995FQ supports phy mode only. pin# (91, 86, 87): switch mii phy [5] mii 000 disable, otri disable, otri 001 phy mode mii disable, otri 010 mac mode mii disable, otri 011 phy mode sni disable, otri 100 disable disable 101 phy mode mii phy mode mii 110 mac mode mii phy mode mii 111 phy mode sni phy mode mii 87 sconf0 ipd dual mii configuration pin. 88 gndd gnd digital ground. 89 vddc p 1.8v digital core v dd . 90 led5-2 ipu/o 5 led indicator 2. strap option: agi ng setup. see ?aging? section. pu (default) = aging enable; pd = aging disable. 91 led5-1 ipu/o 5 led indicator 1. strap option: pu (default) : enable phy[5] mii i/f. pd: tristate all phy[5] mii output. see ?pin 86 sconf1.? notes: 1. p = power supply. i = input. o = output. i/o = bidirectional. gnd = ground. ipu = input w/internal pull-up. ipd = input w/internal pull-down. ipd/o = input w/internal pull-down during reset, output pin otherwise. ipu/o = input w/internal pull-up during reset, output pin otherwise. nc = no connect. 2. pu = strap pin pull-up. pd = strap pull-down. otri = output tristated. fulld = full duplex
micrel, inc. ks8995ma/fq october 2011 18 m9999-102611-3.0 pin description ? by numbers (continued) pin number pin name type (1) port pin function 92 led5-0 ipu/o 5 led indicator 0. 93 led4-2 ipu/o 4 led indicator 2. 94 led4-1 ipu/o 4 led indicator 1. 95 led4-0 ipu/o 4 led indicator 0. 96 led3-2 ipu/o 3 led indicator 2. 97 led3-1 ipu/o 3 led indicator 1. 98 led3-0 ipu/o 3 led indicator 0. 99 gndd gnd digital ground. 100 vddio p 3.3v digital v dd for digital i/o. 101 led2-2 ipu/o 2 led indicator 2. 102 led2-1 ipu/o 2 led indicator 1. 103 led2-0 ipu/o 2 led indicator 0. 104 led1-2 ipu/o 1 led indicator 2. 105 led1-1 ipu/o 1 led indicator 1. 106 led1-0 ipu/o 1 led indicator 0. 107 mdc ipu all switch or phy[ 5] mii management data clock. 108 mdio i/o all switch or phy[5] mii management data i/o. features internal pull down to define pin state when not driven. 109 spiq otri all (1) spi serial data output in spi slav e mode; (2) output clock at 61khz in i 2 c master mode. see ?pin 113.? 110 spic/scl i/o all (1) input clock up to 5mhz in spi slav e mode; (2) output clock at 61khz in i 2 c master mode. see ?pin 113.? 111 sspid/sda i/o all (1) serial data input in spi slave m ode; (2) serial data input/output in i 2 c master mode. see ?pin 113.? 112 spis_n ipu all active low. (1) spi data transfer start in spi slave mode. when spis_n is high, the ks8995ma/fq is deselected and spiq is held in high impedance state, a high-to-low transition to initiate the spi data transfer; (2) not used in i 2 c master mode. 113 ps1 ipd serial bus configuration pin. for this case, if the eeprom is not present, the ks8995ma/fq will start itself with the ps[1.0] = 00 default register values. pin configuration seri al bus configuration ps[1.0]=00 i 2 c master mode for eeprom ps[1.0]=01 reserved ps[1.0]=10 spi slave mode for cpu interface ps[1.0]=11 factory test mode (bist) note: 1. p = power supply. i = input. o = output. i/o = bidirectional. gnd = ground. ipu = input w/internal pull-up. ipd = input w/internal pull-down. ipd/o = input w/internal pull-down during reset, output pin otherwise. ipu/o = input w/internal pull-up during reset, output pin otherwise. nc = no connect.
micrel, inc. ks8995ma/fq october 2011 19 m9999-102611-3.0 pin description ? by numbers (continued) pin number pin name type (1) port pin function 114 ps0 ipd serial bus configuration pin. see ?pin 113.? 115 rst_n ipu reset the ks8995ma/fq. active low. 116 gndd gnd digital ground. 117 vddc p 1.8v digital core v dd . 118 testen ipd nc for normal operation. factory test pin. 119 scanen ipd nc for normal o peration. factory test pin. 120 nc nc no connect. 121 x1 i 25mhz crystal clock connection/or 3.3v tole rant oscillator input. oscillator should be 50ppm. 122 x2 o 25mhz crystal clock connection. 123 vddap p 1.8v analog v dd for pll. 124 gnda gnd analog ground. 125 vddar p 1.8v analog v dd . 126 gnda gnd analog ground. 127 gnda gnd analog ground. 128 test2 nc nc for normal o peration. factory test pin. note: 1. p = power supply. i = input. o = output. i/o = bidirectional. gnd = ground. ipu = input w/internal pull-up ipd = input w/internal pull-down. ipd/o = input w/internal pull-down during reset, output pin otherwise. ipu/o = input w/internal pull-up during reset, output pin otherwise. nc = no connect.
micrel, inc. ks8995ma/fq october 2011 20 m9999-102611-3.0 pin description ? by name pin number pin name type (1) port pin function 39 fxsd4 i 4 fiber signal detect/factory test pin. 38 fxsd3/fxsd5 i 3/5 fiber signal detect/facto ry test pin for fq port 3 or ma port 5 124 gnda gnd analog ground. 42 gnda gnd analog ground. 44 gnda gnd analog ground. 2 gnda gnd analog ground. 16 gnda gnd analog ground. 30 gnda gnd analog ground. 6 gnda gnd analog ground. 12 gnda gnd analog ground. 21 gnda gnd analog ground. 27 gnda gnd analog ground. 34 gnda gnd analog ground. 40 gnda gnd analog ground. 120 nc nc no connect. 127 gnda gnd analog ground. 126 gnda gnd analog ground. 49 gndd gnd digital ground. 88 gndd gnd digital ground. 116 gndd gnd digital ground. 58 gndd gnd digital ground. 76 gndd gnd digital ground. 99 gndd gnd digital ground. 17 iset set physical transmit output current. pull-down with a 3.01k ? 1% resistor. 106 led1-0 ipu/o 1 led indicator 0. 105 led1-1 ipu/o 1 led indicator 1. 104 led1-2 ipu/o 1 led indicator 2. 103 led2-0 ipu/o 2 led indicator 0. 102 led2-1 ipu/o 2 led indicator 1. 101 led2-2 ipu/o 2 led indicator 2. 98 led3-0 ipu/o 3 led indicator 0. note: 1. p = power supply. i = input. o = output. i/o = bidirectional. gnd = ground. ipu = input w/internal pull-up. ipd = input w/internal pull-down. ipd/o = input w/internal pull-down during reset, output pin otherwise. ipu/o = input w/internal pull-up during reset, output pin otherwise. nc = no connect.
micrel, inc. ks8995ma/fq october 2011 21 m9999-102611-3.0 pin description ? by name (continued) pin number pin name type (1) port pin function (2) 97 led3-1 ipu/o 3 led indicator 1. 96 led3-2 ipu/o 3 led indicator 2. 95 led4-0 ipu/o 4 led indicator 0. 94 led4-1 ipu/o 4 led indicator 1. 93 led4-2 ipu/o 4 led indicator 2. 92 led5-0 ipu/o 5 led indicator 0. 91 led5-1 ipu/o 5 led indicator 1. strap option: pu (default) = enable phy mii i/f pd: tristate all phy mii output. see ?pin 86 sconf1.? 90 led5-2 ipu/o 5 led indicator 2. strap option: aging setup. see ?aging? section. (default) = aging enable; pd = aging disable. 107 mdc ipu all switch or phy[ 5] mii management data clock. 108 mdio i/o all switch or ph y[5] mii management data i/o. 1 mdi-xdis ipd 1-5 disable auto mdi/mdi-x. 45 mux1 nc factory test pins. mux1 and mux2 should be left unconnected for normal operation. 46 mux2 nc mode mux1 mux2 normal operation nc nc 68 pcol ipd/o 5 phy[5] mii collision detect/force flow control. see ?register 18.? for port 4 only. pd (default) = no force flow control. pu = force flow control. 67 pcrs ipd/o 5 phy[5] mii carrier sense/force duplex mode. see ?register 28.? for port 4 only. pd (default) = force half-duplex if auto-negotia tion is disabled or fails. pu = force full- duplex if auto-negotiation is disabled or fails. 60 pmrxc o 5 phy[5] mii receive clock. phy mode mii. 65 pmrxd0 ipd/o 5 phy[5] mii receive bit 0. strap option: pd (default) = disable aggressive back-off algorithm in half-duplex mode; pu = enable for performance enhancement. 64 pmrxd1 ipd/o 5 phy[5] mii receive bit 1. strap option: pd (default) = drop excessive collision packets; pu = does not drop excessive collision packets. 63 pmrxd2 ipd/o 5 phy[5] mii receive bit 2. strap option: pd (default) = disable back pressure; pu = enable back pressure. 62 pmrxd3 ipd/o 5 phy[5] mii receive bit 3. strap option: pd (default) = enable flow control; pu = disable flow control. 61 pmrxdv ipd/o 5 phy[5] mii receive data valid. notes: 1. p = power supply. i = input. o = output. i/o = bidirectional. gnd = ground. ipu = input w/internal pull-up. ipd = input w/internal pull-down. ipd/o = input w/internal pull-down during reset, output pin otherwise. ipu/o = input w/internal pull-up during reset, output pin otherwise. nc = no connect. 2. pu = strap pin pull-up. pd = strap pull-down.
micrel, inc. ks8995ma/fq october 2011 22 m9999-102611-3.0 pin description ? by name pin number pin name type (1) port pin function 57 pmtxc o 5 phy[5] mii transmit clock. phy mode mii. 55 pmtxd0 ipd 5 phy[5] mii transmit bit 0. 54 pmtxd1 ipd 5 phy[5] mii transmit bit 1. 53 pmtxd2 ipd 5 phy[5] mii transmit bit 2. 52 pmtxd3 ipd 5 phy[5] mii transmit bit 3. 51 pmtxen ipd 5 phy[5] mii transmit enable. 56 pmtxer ipd 5 phy[5] mii transmit error. 114 ps0 ipd serial bus configuration pin. see ?pin 113.? 113 ps1 ipd serial bus configuration pin. if eeprom is not present, the ks8995ma/fq will start itself with chip default (00)... pin configuration seri al bus configuration ps[1:0]=00 i 2 c master mode for eeprom ps[1:0]=01 reserved ps[1:0]=10 spi slave mode for cpu interface ps[1:0]=11 factory test mode (bist) 47 pwrdn_n ipu full-chip power down. active low. 48 reserve nc reserved pin. no connect. 115 rst_n ipu reset the ks8995ma/fq. active low. 5 rxm1 i 1 physical receive signal ? (differential). 11 rxm2 i 2 physical receive signal ? (differential). 20 rxm3 i 3 physical receive signal ? (differential). 26 rxm4 i 4 physical receive signal ? (differential). 33 rxm5 i 5 physical receive signal ? (differential). 4 rxp1 i 1 physical receive signal + (differential). 10 rxp2 i 2 physical receive signal + (differential). 19 rxp3 i 3 physical receive signal + (differential). 25 rxp4 i 4 physical receive signal + (differential). 32 rxp5 i 5 physical receive signal + (differential). 119 scanen ipd nc for normal o peration. factory test pin. 84 scol ipd/o switch mii collision detect. 87 sconf0 ipd dual mii configuration pin. note: 1. p = power supply. i = input. o = output. i/o = bidirectional. gnd = ground. ipu = input w/internal pull-up. ipd = input w/internal pull-down. ipd/o = input w/internal pull-down during reset, output pin otherwise. ipu/o = input w/internal pull-up during reset, output pin otherwise. nc = no connect.
micrel, inc. ks8995ma/fq october 2011 23 m9999-102611-3.0 pin description ? by name pin number pin name type (1) port pin function (2) 86 sconf1 ipd dual mii configuration pin. for the swit ch mii, ksz8995ma supports both mac mode and phy mode, KSZ8995FQ supports phy mode only. pin# (91, 86, 87): switch mii phy [5] mii 000 disable, otri disable, otri 001 phy mode mii disable, otri 010 mac mode mii disable, otri 011 phy mode sni disable, otri 100 disable disable 101 phy mode mii phy mode mii 110 mac mode mii phy mode mii 111 phy mode sni phy mode mii 85 scrs ipd/o switch mode carrier sense. 78 smrxc i/o switch mii receive clock. i nput in mac mode, output in phy mode mii. 83 smrxd0 ipd/o switch mii receive bit 0; strap option: led mode pd (default) = mode 0; pu = mode 1. see ?register 11.? mode 0 mode 1 ledx_2 lnk/act 100lnk/act ledx_1 fulld/col 10lnk/act ledx_0 speed full duplex 82 smrxd1 ipd/o switch mii receive bit 1. strap option: pd (default) = switch mii in 100mbps mode; pu = switch mii in 10mbps mode. 81 smrxd2 ipd/o switch mii receive bit 2. strap option: pd (default) = switch mii in full-duplex mode; pu = switch mii in half-duplex mode. 80 smrxd3 ipd/o switch mii receive bit 3. strap option: pd (default) = disable switch mii full-duplex flow control; pu = enable switch mii full-duplex flow control. 79 smrxdv ipd/o switch mii receive data valid. 75 smtxc i/o switch mii transmit clock. i nput in mac mode, output in phy mode mii. 73 smtxd0 ipd switch mii transmit bit 0. 72 smtxd1 ipd switch mii transmit bit 1. 71 smtxd2 ipd switch mii transmit bit 2. 70 smtxd3 ipd switch mii transmit bit 3. 69 smtxen ipd switch mii transmit enable. 74 smtxer ipd switch mii transmit error. notes: 1. p = power supply. i = input. o = output. i/o = bidirectional. gnd = ground. ipu = input w/internal pull-up. ipd = input w/internal pull-down. ipd/o = input w/internal pull-down during reset, output pin otherwise. ipu/o = input w/internal pull-up during reset, output pin otherwise. otri = output tristated. nc = no connect. 2. pu = strap pin pull-up. pd = strap pull-down. fulld = full duplex
micrel, inc. ks8995ma/fq october 2011 24 m9999-102611-3.0 pin description ? by name pin number pin name type (1) port pin function 110 spic/scl i/o all (1) input clock up to 5mhz in spi slav e mode; (2) output clock at 61khz in i 2 c master mode. see ?pin 113.? 111 sspid/sda i/o all (1) serial data input in spi slave m ode; (2) serial data input/output in i 2 c master mode. see ?pin 113.? 109 spiq otri all (1) spi serial data output in spi slav e mode; (2) output clock at 61khz in i 2 c master mode. see ?pin 113.? 112 spis_n ipu all active low. (1) spi data transfer start in spi slave mode. when spis_n is high, the ks8995ma/fq is deselected and spiq is held in high impedance state, a high-to-low transition to initiate the spi data transfer; (2) not used in i 2 c master mode. 128 test2 nc nc for normal o peration. factory test pin. 118 testen ipd nc for normal operation. factory test pin. 8 txm1 o 1 physical transmit signal ? (differential). 14 txm2 o 2 physical transmit signal ? (differential). 23 txm3 o 3 physical transmit signal ? (differential). 29 txm4 o 4 physical transmit signal ? (differential). 36 txm5 o 5 physical transmit signal ? (differential). 7 txp1 o 1 physical transmit signal + (differential). 13 txp2 o 2 physical transmit signal + (differential). 22 txp3 o 3 physical transmit signal + (differential). 28 txp4 o 4 physical transmit signal + (differential). 35 txp5 o 5 physical transmit signal + (differential). 123 vddap p 1.8v analog v dd for pll. 41 vddar p 1.8v analog v dd . 43 vddar p 1.8v analog v dd . 3 vddar p 1.8v analog v dd . 15 vddar p 1.8v analog v dd . 31 vddar p 1.8v analog v dd . 125 vddar p 1.8v analog v dd . 18 vddat p 3.3v analog v dd . 9 vddat p 3.3v analog v dd . 24 vddat p 3.3v analog v dd . 37 vddat p 3.3v analog v dd . 50 vddc p 1.8v digital core v dd . note: 1. p = power supply. i = input. o = output. i/o = bidirectional. gnd = ground. ipu = input w/internal pull-up. ipd = input w/internal pull-down. ipd/o = input w/internal pull-down during reset, output pin otherwise. ipu/o = input w/internal pull-up during reset, output pin otherwise. otri = output tristated. nc = no connect.
micrel, inc. ks8995ma/fq october 2011 25 m9999-102611-3.0 pin description ? by name pin number pin name type (1) port pin function 89 vddc p 1.8v digital core v dd . 117 vddc p 1.8v digital core v dd . 59 vddio p 3.3v digital v dd for digital i/o circuitry. 77 vddio p 3.3v digital v dd for digital i/o circuitry. 100 vddio p 3.3v digital v dd for digital i/o circuitry. 121 x1 i 25mhz crystal clock connection/or 3.3v tole rant oscillator input. oscillator should be 50ppm. 122 x2 o 25mhz crystal clock connection. note: 1. p = power supply. i = input. o = output.
micrel, inc. ks8995ma/fq october 2011 26 m9999-102611-3.0 introduction the ks8995ma/fq contains five 10/100 physical layer transceive rs and five media access control (mac) units with an integrated layer 2 managed switch. the device runs in three modes. the first mode is as a five-port integrated switch. the second is as a five-port switch with the fifth port decoupl ed from the physical port. in this mode, access to the fifth mac is provided through a media independent interface (mii) . this is useful for implementing an integrated broadband router. the third mode uses the dual mii feature to recover th e use of the fifth phy. this allows the additional broadband gateway configuration, where the fifth ph y may be accessed through the mii-p5 port. the ks8995ma/fq has the flexibility to reside in a mana ged or unmanaged design. in a managed design, a host processor has complete control of the ks8995ma/fq via the spi bus, or partial control via the mdc/mdio interface. an unmanaged design is achieved through i/o strappi ng or eeprom programming at system reset time. on the media side, the ks8995ma/fq supports ieee 802.3 10base-t, 100base-tx on all ports, and the ks8995ma supports 100base-fx on ports 4 and 5, and the ks8995fq support s 100base-fx on ports 3 and 4. the ks8995ma/fq can be used as fully-managed 5-port standalone sw itch or two separate media converters. physical signal transmission and reception are enhanced th rough the use of patented analog circuitry that makes the design more efficient and allows for lower power consumption and smaller chip die size. the major enhancements from the ks8995e to the ks8995ma/ fq are support for host processor management, a dual mii interface, tag as well as port based vlan, spanning tree protocol support, igmp snooping support, port mirroring support and rate limiting functionality. functional overview: physical layer transceiver 100base-tx transmit the 100base-tx transmit function performs parallel-to-seria l conversion, 4b/5b coding , scrambling, nrz-to-nrzi conversion, mlt3 encoding and transmission. the circuit starts with a parallel-to-serial conversion, which converts the mii data from the mac into a 125mhz serial bit stream. the data and control stream is then converted into 4b/5b coding followed by a scrambler. the serialized data is further conver ted from nrz-to-nrzi format, and then transmitted in mlt3 current output. the output current is set by an external 1% 3.01k ? resistor for the 1:1 transformer ratio. it has a typical rise/fall time of 4ns and complies with the ansi tp-pmd standard regarding amplitude balance, overshoot, and timing jitter. the wave-shaped 10base-t output is also incorporated in to the 100base-tx transmitter. 100base-tx receive the 100base-tx receiver function performs adaptive equalizat ion, dc restoration, mlt3-t o-nrzi conversion, data and clock recovery, nrzi-to-nrz conversion, de-scrambling, 4b/5b decoding, and serial-to-parallel conversion. the receiving side starts with the equalization filter to compensate for inter-symbol interference (isi) over the twisted pair cable. since the amplitude loss and phase distortion is a function of th e length of the cable, the equalizer has to adjust its characteristics to optimize the performance. in this design , the variable equalizer will make an initial estimation based on comparisons of incoming signal strength against some known cabl e characteristics, then tunes itself for optimization. this is an ongoing process and can self-adjust against envir onmental changes such as temperature variations. the equalized signal then goes through a dc restoration and data conversion block. the dc restoration circuit is used to compensate for the effect of baseline wander and improv e the dynamic range. the differ ential data conversion circuit converts the mlt3 format back to nrzi. the slicing threshold is also adaptive. the clock recovery circuit extracts the 1 25mhz clock from the edges of the nrzi signal. this recovered clock is then used to convert the nrzi signal into the nrz format. the signal is then sent through the de-scrambler followed by the 4b/5b decoder. finally, the nrz serial data is converted to th e mii format and provided as the input data to the mac. pll clock synthesizer the ks8995ma/fq generates 125mhz, 42mhz, 25mhz, and 10mhz clocks for system timing. internal clocks are generated from an external 25mhz crystal or oscillator.
micrel, inc. ks8995ma/fq october 2011 27 m9999-102611-3.0 scrambler/de-scrambler (100base-tx only) the purpose of the scrambler is to spread the power spectrum of the signal in order to reduce emi and baseline wander. the data is scrambled through the use of an 11-bit wide linear feedback shift register (lfsr). this can generate a 2047- bit non-repetitive sequen ce. the receiver will then de-scr amble the incoming data stream with the same se quence at the transmitter. 100base-fx operation 100base-fx operation is very similar to 100base-tx operati on except that the scramb ler/de-scrambler and mlt3 encoder/decoder are bypassed on transmissio n and reception. in this mode the auto-negotiation feature is bypassed since there is no standard that su pports fiber auto-negotiation. 100base-fx signal detection the physical port runs in 100base-fx m ode if fxsdx >0.6v for ports 3, 4 (ksz 8995fq) or ports 4, 5 (ksz8995ma) only. this signal is internally referenced to 1.25v. the fi ber module interface should be set by a voltage divider such that fxsdx ?h? is above this 1.25v reference, indicating signal det ect, and fxsdx ?l? is below the 1.25v reference to indicate no signal. when fxsdx is below 0.6v then 100base-fx mode is disabled. since there is no auto-negotiation for 100base-fx mode, the ports must be forced to ei ther full or half-duplex for the fiber po rts. note that str ap-in options exist to set duplex mode for port 4, but not for port 3, 5. 100base-fx far end fault far end fault occurs when the signal detection is logically fa lse from the receive fiber module. when this occurs, the transmission side signals the other end of the link by sending 84 1s followed by a zero in the idle period between frames. the far end fault may be disabled through register settings. 10base-t transmit the output 10base-t driver is incorporat ed into the 100base-t driver to allow transmission with t he same magnetics. they are internally wave-shaped and pre-emphasized into out puts with a typical 2.3v amplitude. the harmonic contents are at least 27db below the fundamental when driven by an all-ones manchester-encoded signal. 10base-t receive on the receive side, input buffer and level detecting squelch ci rcuits are employed. a differential input receiver circuit and a pll perform the decoding function. the manchester-encoded da ta stream is separated into clock signal and nrz data. a squelch circuit rejects signals with levels less than 400mv or with short pulsewidths in order to prevent noises at the rxp or rxm input from falsely triggering the decoder. when the input exceeds the squelch limit, the pll locks onto the incoming signal and the ks8995ma/fq decodes a data frame. the receiver clock is maintained active during idle periods in between data reception. power management the ks8995ma/fq features a per port power down mode. to sa ve power the user can power down ports that are not in use by setting port control registers or mii control registers. in addition, it also supports full chip power down mode. when activated, the entire chip will be shutdown. mdi/mdi-x auto crossover the ks8995ma/fq supports mdi/mdi-x auto crossover. this fa cilitates the use of either a straight connection cat-5 cable or a crossover cat-5 cable. the auto-sense function will detect remote transmit and receive pairs, and correctly assign the transmit and receive pairs from the micrel device. this can be highly useful when end users are unaware of cable types and can also save on an additional uplink conf iguration connection. the auto crossover feature may be disabled through the port control registers.
micrel, inc. ks8995ma/fq october 2011 28 m9999-102611-3.0 auto-negotiation the ks8995ma/fq conforms to the auto-negotiation protocol as described by the 802.3 committee. auto-negotiation allows unshielded twisted pair (utp) link partners to select the best common mode of oper ation. in auto-negotiation the link partners advertise capabilities across the link to each other. if auto-negotiation is not supported or the link partner to the ks8995ma/fq is forced to bypass auto-negotiation, then the mode is set by observing the signal at the receiver. this is known as parallel mode because while the transmitter is sending auto-negotiation advertisements, the receiver is listening for advertisements or a fixed signal protocol. the flow for the link setup is shown in figure 5. figure 5. auto negotiation
micrel, inc. ks8995ma/fq october 2011 29 m9999-102611-3.0 functional overview: switch core address look-up the internal look-up table stores mac addresses and their as sociated information. it contai ns a 1k unicast address table plus switching information. the ks8995ma/fq is guaranteed to learn 1k addresses and distinguishes itself from a hash- based look-up table, which de pending on the operating environment and prob abilities, may not guar antee the absolute number of addresses it can learn. learning the internal look-up engine updates its table with a new entry if the following conditions are met: ? the received packet?s source address ( sa) does not exist in the look-up table. ? the received packet is good; the packet has no receiving errors and is of legal length. the look-up engine inserts the qualified sa into the table, along with the port number and time stamp. if the table is full, the last entry of the table is deleted fi rst to make room for the new entry. migration the internal look-up engine also monitors whether a station is moved. if this occurs, it updates the table accordingly. migration happens when the following conditions are met: ? the received packet?s sa is in the table but t he associated source port information is different. ? the received packet is good; the packet has no receiving errors and is of legal length. the look-up engine will updat e the existing record in the table with the new source port information. aging the look-up engine will update the time stamp information of a record whenever the corresponding sa appears. the time stamp is used in the aging process. if a record is not updated for a period of time, the look-up engine will remove the record from the table. the look-up engine constantly perfo rms the aging process and will continuously remove aging records. the aging period is 300 + 75 seconds. this feature c an be enabled or disabled through register 3 or by external pull-up or pull-down resistors on led[5][2]. see ?register 3? section. forwarding the ks8995ma/fq will forward packets usi ng an algorithm that is depicted in t he following flowcharts. figure 6 shows stage one of the forwarding algorithm wher e the search engine looks up the vlan id, static table, and dynamic table for the destination address, and comes up with ?port to forward 1? (ptf1). ptf1 is t hen further modified by the spanning tree, igmp snooping, port mirroring, and port vlan processes to come up with ?port to forward 2? (ptf2), as shown in figure 7. this is where the packet will be sent. ks8995ma/fq will not forward the following packets ? error packets. these include framing errors, fcs erro rs, alignment errors, and illegal size packet errors. ? 802.3x pause frames. the ks8995ma/fq will intercept these packets and perform the appropriate actions. ? ?local? packets. based on destination address (da) look-up. if the destination port from the look-up table matches the port where the packet was from, the packet is defined as ?local.? switching engine the ks8995ma/fq features a high-performance switching engi ne to move data to and from the mac?s, packet buffers. it operates in store and forward mode, while the efficient sw itching mechanism reduces over all latency. the ks8995ma/fq has a 64kb internal frame buffer. this resource is shared between all five ports. the buffer sharing mode can be programmed through register 2. see ?register 2.? in one mode , ports are allowed to use any free buffers in the buffer pool. in the second mode, each port is only allowed to use 1/5 of the total buffer pool. there are a total of 512 buffers available. each buffer is sized at 128b.
micrel, inc. ks8995ma/fq october 2011 30 m9999-102611-3.0 media access controller (mac) operation the ks8995ma/fq strictly abides by ieee 802. 3 standards to maximi ze compatibility. inter-packet gap (ipg) if a frame is successfully transmitted, the 96-bit time ipg is measured between the two consecutive mtxen. if the current packet is experiencing collision, the 96-bit time ipg is measured from mcrs and the next mtxen. backoff algorithm the ks8995ma/fq implements the ieee std. 802.3 binary ex ponential back-off algorithm, and optional ?aggressive mode? back off. after 16 collisions, the packet will be optionally dr opped depending on th e chip configuratio n in register 3. see ?register 3.? late collision if a transmit packet experiences collisions after 512-bit times of the transmission, the packet will be dropped. illegal frames the ks8995ma/fq discards frames less than 64 bytes and ca n be programmed to accept frames up to 1536 bytes in register 4. for special applications, the ks8995ma/fq can al so be programmed to accept frames up to 1916 bytes in register 4. since the ks8995ma/fq su pports vlan tags, the maximum sizing is adjusted when these tags are present. flow control the ks8995ma/fq supports standard 802.3x flow cont rol frames on both transmit and receive sides. on the receive side, if the ks8995ma/fq receives a paus e control frame, the ks8995ma/fq will not transmit the next normal frame until the timer, specified in the pause control frame, expires. if another pause frame is received before the current timer expires, the timer will be updated with the new va lue in the second pause frame. during this period (being flow controlled), only flow control packet s from the ks8995ma/fq will be transmitted. on the transmit side, the ks8995ma/fq has intelligent and effici ent ways to determine when to invoke flow control. the flow control is based on availability of the system resource s, including available buffers, available transmit queues and available receive queues. the ks8995ma/fq flow controls a port that has just receiv ed a packet if the destination port resource is busy. the ks8995ma/fq issues a flow control fram e (xoff), containing the maximum pa use time defined in ieee standard 802.3x. once the resource is freed up, the ks8995m a/fq sends out the other flow control frame (xon) with zero pause time to turn off the flow control (turn on transmission to the port). a hysteresis feature is also prov ided to prevent over-activation and deactivation of the flow control mechanism. the ks8995ma/fq flow controls all ports if the receive queue becomes full.
micrel, inc. ks8995ma/fq october 2011 31 m9999-102611-3.0 figure 6. da look-up flowchart ? 1
micrel, inc. ks8995ma/fq october 2011 32 m9999-102611-3.0 figure 7. da resolution flowchart ? stage 2
micrel, inc. ks8995ma/fq october 2011 33 m9999-102611-3.0 half-duplex back pressure the ks8995ma/fq also provides a half-duplex back-pressure option ( note : this is not in i eee 802.3 standards). the activation and deactivation conditions are the same as the ones given for full-duplex mode. if back pressure is required, the ks8995ma/fq sends preambles to defer the other station's transmission (carri er sense deference). to avoid jabber and excessive deference as defined in ieee 802.3 standa rd, after a certain period of time, the ks8995ma/fq discontinues carrier sense but raises it quickly after it drops pa ckets to inhibit other transmissions. this short silent time (no carrier sense) is to prevent other stations from sending out packets and keeps other stations in a carrier sense deferred state. if the port has packets to send during a back pressure situation, the carrier-sense-type back pressure is interrupted and those packets are transmitted instead. if there areno more packets to send, carrier-sense-type back pressure becomes active again until switch resources are free. if a collision occurs, the binary exponential backoff algorithm is skipped and carrier sense is generated immediately, r educing the chanceof furthe r colliding and maintaining carrier sense to prevent rec eption of packets. to ensure no packet loss in 10base-t or 100base-tx half-duplex modes, the user must enable the following: ? aggressive backoff (register 3, bit 0) ? no excessive collision dr op (register 4, bit 3) ? back pressure (register 4, bit 5) these bits are not set as the default because this is not the ieee standard. broadcast storm protection the ks8995ma/fq has an intelligent option to protect the switch system from re ceiving too many br oadcast pa ckets. broadcastpackets are normally forwarded to all ports except the source port and thus use too many switch resources (bandwidth and available space in transmit queues). the ks89 95ma/fq has the option to incl ude ?multicast packets? for storm control. the broadcast storm ra te parameters are programmed globally and can be enabled or disabled on a per port basis. the rate is basedon a 50ms interval for 100b t and a 500ms interval for 10bt. at the beginning of each interval, the counter is cleared to zero and the rate limit me chanism starts to count the numbe r of bytes during the interval. the rate definition is described in registers 6 and 7. the def ault setting for registers 6 and 7 is 0x4a (74 decimal). this is equal to a rate of 1%, calculated as follows: 148,800 frames/sec 50ms/interval 1% = 74 frames/interval (approximately) = 0 4a frames/interval mii interface operation the media independent interface (mii) is specified by the ieee 802.3 committee and provides a common interface between physical layer and mac layer devices. the ks8995ma/fq provides two such interfaces. the mii-p5 interface is used to connectto the fifth phy, wherea s the mii-sw interface is used to connect to the fifth mac. each of these mii interfaces contains two distinct groups of signals, one for transmission and the ot her for receiving. table 1 describes the signals used in the mii-p5 interface.
micrel, inc. ks8995ma/fq october 2011 34 m9999-102611-3.0 sni signal description ks8995ma/fq signal mtxen transmit enable pmtxen mtxer transmit error pmtxer mtxd3 transmit data bit 3 pmtxd[3] mtxd2 transmit data bit 2 pmtxd[2] mtxd1 transmit data bit 1 pmtxd[1] mtxd0 transmit data bit 0 pmtxd[0] mtxc transmit clock pmtxc mcol collision detection pcol mcrs carrier sense pcrs mrxdv receive data valid pmrxdv mrxer receive error pmrxer mrxd3 receive data bit 3 pmrxd[3] mrxd2 receive data bit 2 pmrxd[2] mrxd1 receive data bit 1 pmrxd[1] mrxd0 receive data bit 0 pmrxd[0] mrxc receive clock pmrxc mdc management data clock mdc mdio management data i/o mdio table 1. mii ? p5 signals (phy mode) table 2 illustrates three diffe rent connection approaches: 1. the first and second columns show the connections for external mac and mii-sw phy mode. 2. the fourth and fifth columns show the connections for external phy and mii-sw mac mode. 3. the second and fifth columns show the back-to-bac k connections for two mii-sw macs of two devices.
micrel, inc. ks8995ma/fq october 2011 35 m9999-102611-3.0 phy mode connection mac mode connection external mac ks8995ma/fq signal descrip tion external phy ks8995ma only signal mtxen smtxen transmit enable mtxen smrxdv mtxer smtxer transmit error mtxer not used mtxd3 smtxd[3] transmit data bit 3 mtxd3 smrxd[3] mtxd2 smtxd[2] transmit data bit 2 mtxd2 smrxd[2] mtxd1 smtxd[1] transmit data bit 1 mtxd1 smrxd[1] mtxd0 smtxd[0] transmit data bit 0 mtxd0 smrxd[0] mtxc smtxc transmit clock mtxc smrxc mcol scol collision detection mcol scol mcrs scrs carrier sense mcrs scrs mrxdv smrxdv receive data valid mrxdv smtxen mrxer not used receive error mrxer smtxer mrxd3 smrxd[3] receive data bit 3 mrxd3 smtxd[3] mrxd2 smrxd[2] receive data bit 2 mrxd2 smtxd[2] mrxd1 smrxd[1] receive data bit 1 mrxd1 smtxd[1] mrxd0 smrxd[0] receive data bit 0 mrxd0 smtxd[0] mrxc smrxc receive clock mrxc smtxc table 2. mii ? sw signals the mii-p5 interface operates in phy mode only, while the mii-sw interface operates in either mac mode or phy mode for ksz8995ma. the mii-sw interface operates in phy m ode only for KSZ8995FQ. these interfaces are nibble-wide data interfaces and therefore run at 1/4 the network bit rate (not encoded). additional signals on the transmit side indicate when data is valid or when an error occurs during transmiss ion. likewise, the receive side has indicators that convey when the data is valid and without physical layer errors. fo r half-duplex operation there is a signal that indicates a collision has occurred during transmission. note that the signal mrxer is not provided on the mii-sw interface for phy mode operation and the signal mtxer is not provided on the mii-sw interface for mac mode operation. normally mrxer would indicate a receive error coming from the physical layer device. mtxer would indicate a tr ansmit error from the mac device. these signals are not appropriate for this configuration. for phy mode operation, if the device interfacing with the ks8995ma/fq has an mrxer pin, it should be tied low. for mac mode operation, if the device interfacing with the ks8995ma has an mtxer pin, it should be tied low.
micrel, inc. ks8995ma/fq october 2011 36 m9999-102611-3.0 sni interface operation the serial network interface (sni) is compatible with some controllers used for network layer protocol processing. this interface can be directly connected to these types of devices. the signals are divided into two groups, one for transmission and the other for reception. the signals involved are described in table 3. sni signal description ks8995ma/fq signal txen transmit enable smtxen txd serial transmit data smtxd[0] txc transmit clock smtxc col collision detection scol crs carrier sense smrxdv rxd serial receive data smrxd[0] rxc receive clock smrxc table 3. sni signals this interface is a bit-wide data interface and therefore runs at the network bit rate (not encoded). an additional signal on the transmit side indicates when data is valid. likewise, the receive side has an indicator that conveys when the data is valid. for half-duplex operation there is a signal that indicates a collision has occurred during transmission. advanced functionality spanning tree support port 5 is the designated port for spanning tree support. the other ports (port 1 ? port 4) can be configured in one of the five spanning tree states via ?transmit enable,? ?receive enable,? and ?learning disable? register settings in registers 18, 34, 50, and 66 for ports 1, 2, 3, and 4, respectively. the following description shows the port setting and software ac tions taken for each of the five spanning tree states. disable state: the port should not forward or receive any packets. learning is disabled. port setting: "transmit enable = 0, re ceive enable = 0, learning disable = 1." software action: the processor should not send any packets to the port. the switch may still send specific packets to the processor (packets that match some entries in the static tabl e with ?overriding bit? set) and the processor should discard those packets. note: processor is connect ed to port 5 via mii interface. address learning is disabled on the port in this state. blocking state: only packets to the proces sor are forwarded. learning is disabled. port setting: "transmit enable = 0, re ceive enable = 0, learning disable = 1" software action: the processor should not send any packets to the port(s) in this state. the processor should program the ?static mac table? with the entries that it needs to receive (e.g., bpdu packets). the ?overriding? bit should also be set so that the switch will forward those specific packets to the processor. address learni ng is disabled on the port in this state. listening state: only packets to and from the pr ocessor are forwarded. learning is disabled. port setting: "transmit enable = 0, re ceive enable = 0, learning disable = 1. "software action: the processor should prog ram the static mac table with the entries that it needs to receive (e.g. bpdu packets). the ?overriding? bit should be set so that the switch will forward those specific pac kets to the processor. the processor may send packets to the port(s) in this state, se e ?special tagging mode? section for details. address learning is disabled on the port in this state.
micrel, inc. ks8995ma/fq october 2011 37 m9999-102611-3.0 learning state: only packets to and from the pr ocessor are forwarded. learning is enabled. port setting: ?transmit enable = 0, re ceive enable = 0, learning disable = 0.? software action: the processor should program the static mac ta ble with the entries that it needs to receive (e.g., bpdu packets). the ?overriding? bit should be set so that the switch will forward those specific pac kets to the processor. the processor may send packets to the port(s) in this state, se e ?special tagging mode? section for details. address learning is enabled on the port in this state. forwarding state: packets are forwarded and received normally. learning is enabled. port setting: ?transmit enable = 1, re ceive enable = 1, learning disable = 0.? software action: the processor should program the static mac ta ble with the entries that it needs to receive (e.g., bpdu packets). the ?overriding? bit should be set so that the switch will forward those specific pac kets to the processor. the processor may send packets to the port(s) in this state, se e ?special tagging mode? section for details. address learning is enabled on the port in this state. special tagging mode the special tagging mode is designed for spanning tree protocol igmp snooping and is flexible for use in other applications. the special tagging mode, similar to 802. 1q, requires software to change network drivers to insert/modify/strip/interpret the special tag. this mode is enabled by setting both register 11 bit 0 and register 80 bit 2. 802.1q tag format special tag format tpid (tag protocol identifier, 0x8100) + tci stpid (special t ag identifier, 0x8100) + tci 0x810 + 4 bit for ?port mask?) + tci table 4. special tagging mode format the stpid will only be seen and used on th e port 5 interface, which should be co nnected to a proces sor. packets from the processor to the switch should be tagged with stpid and the port mask defined as below: ?0001? packet to port 1 only ?0010? packet to port 2 only?0100? packet to port 3 only ?1000? packet to port 4 only ?0011? packet broadcast to port 1 and port 2 ...... ?1111? packet broadcast to ports 1, 2, 3, and 4. ?0000? normal tag, will use the ks8995ma/fq internal look-u p result. normal packets should use this setting. if packets from the processors do not have a tag, the ks8995ma/fq will treat them as normal packets and an internal look-up will be performed.the ks8995ma/fq uses a non-zero ?port mask? to bypass the look-up result a nd override any port setting, regardless of port states (blocking, disable, listening, lear ning). table 5 shows the egress rules when dealing with stpid.
micrel, inc. ks8995ma/fq october 2011 38 m9999-102611-3.0 ingress tag field tx port ?tag insertion? tx port ?tag removal? egress action to tag field (0x810+ port mask) 0 0 ? ? recalculate crc. ? no change to tci if not null vid. ? replace vid with ingress ( port 5) port vid if null vid. (0x810+ port mask) 0 1 ? ? padding to 64 bytes if necessary. ? recalculate crc. (0x810+ port mask) 1 0 ? ? recalculate crc. ? no change to tci if not null vid. ? replace vid with ingress ( port 5) port vid if null vid. (0x810+ port mask) 1 1 ? ? recalculate crc. ? no change to tci if not null vid. ? replace vid with ingress ( port 5) port vid if null vid. not tagged don?t care don?t care determined by the dynamic mac address table. table 5. stpid egress rules (processor to switch port 5) for packets from regular ports (port 1 ? port 4) to port 5, the port mask is used to tell the processor which port the packet was received on, defined as: ?0001? from port 1, ?0010? from port 2, ?0100? from port 3, ?1000? from port 4 no values other than the previous four defined should be rece ived in this direction in the special mode. table 6 shows the egress rule for this direction. ingress packets egress action to tag field tagged with 0x8100 + tci ? modify tpid to 0x810 + ?port mask,? which indicate source port. ? no change to tci, if vid is not null. ? replace null vid with ingress port vid. ? recalculate crc. not tagged ? insert tpid to 0x810 + ?port mask,? which indicate source port. ? insert tci with ingress port vid. ? recalculate crc. table 6. stpid egress rules (switch to processor)
micrel, inc. ks8995ma/fq october 2011 39 m9999-102611-3.0 igmp support there are two parts involved to support igmp in layer 2. the first part is ?igmp? snooping. the switch will trap igmp packets and forward them only to the processor port. the igmp packets are identified as ip packets (either ethernet ip packets or ieee 802.3 snap ip packets) and ip version = 0x4 and protocol number = 0x 2. the second part is ?multicast address insertion? in the static mac table. once the multicast address is programmed in the static mac table, the multicast session will be trimmed to the subscribed ports, in stead of broadcasting to all port s. to enable this feature, set register 5 bit 6 to 1. also ?special tag mode? needs to be enabled, so that the proces sor knows which port the igmp packet was received on. enable ?special tag mode? by setting both register 11 bit 0 and register 80 bit 2. port mirroring support ks8995ma/fq supports ?port mirror? comprehensively as: 1. ?receive only? mirror on a port. all the packets received on the port w ill be mirrored on the sniffer port. for example, port 1 is programmed to be ?rx sniff,? and port 5 is programmed to be the ?sniffer port.? a packet, received on port 1, is destined to port 4 after the internal look-up. the ks 8995ma/fq will forward the packet to both port 4 and port 5. ks8995ma/fq can optionally forward even ?bad? received packets to port 5. 2. ?transmit only? mirror on a port. all the packets transmitted on the port will be mirrored on the sniffer port. for example, port 1 is programm ed to be ?tx sniff,? and port 5 is programme d to be the ?sniffer port.? a packet, received on any of the ports, is destined to port 1 after the inter nal look-up. the ks8995ma/fq will forward the packet to both ports 1 and 5. 3. ?receive and transmit? mirror on two ports. all the packets received on port a and transmitted on port b will be mirrored on the sniffer port. to turn on the ?and? feature, se t register 5 bit 0 to 1. for example, port 1 is programmed to be ?rx sniff,? port 2 is programmed to be ?transmit sniff,? and port 5 is progra mmed to be the ?sniffer port.? a packet, received on port 1, is destined to port 4 after the internal look-up. the ks8995m a/fq will forward the packet to port 4 only, since it does not meet t he ?and? condition. a packet, received on port 1, is destined to port 2 after the internal look-up. the ks8995ma/fq will forward t he packet to both port 2 and port 5. multiple ports can be selected to be ?rx sniffed? or ?tx sniff ed.? and any port can be selected to be the ?sniffer port.? all these per port features can be selected through register 17.
micrel, inc. ks8995ma/fq october 2011 40 m9999-102611-3.0 vlan support ks8995ma/fq supports 16 active vlans out of 4096 possi ble vlans specified in ieee 802.1q. ks8995ma/fq provides a 16-entry vlan table, which converts vid (12 bits) to fid (4 bits) for addres s look-up. if a non-tagged or null-vid-tagged packet is received, the ingress port vid is used for look-up. in the vlan mode, the look-up process starts with vlan table look-up to determine whether the vid is valid. if the vid is not valid, the packet will be dropped and its address will not be learned. if the vid is valid, fid is retrieved for further look -up. fid+da is used to determi ne the destination port. fid+sa is used for learning purposes. da found in static mac table use fid flag? fid match? d a +fid found in dynamic mac table action no don?t care don?t care no broadcast to the membership ports defined in the vlan table bit [20:16]. no don?t care don?t care yes send to the destination port defined in the dynamic mac table bit [54:52]. yes 0 don?t care don?t care send to the destination port(s) defined in the static mac table bit [52:48]. yes 1 no no broadcast to the membership ports defined in the vlan table bit [20:16]. yes 1 no yes send to the destination port defined in the dynamic mac table bit [54:52]. yes 1 yes don?t care send to the destination port(s) defined in the static mac table bit [52:48]. table 7. fid+da look-up in the vlan mode sa+fid found in dynamic mac table action no the sa+fid will be learned into the dynamic table. yes time stamp will be updated. table 8. fid+sa look-up in the vlan mode advanced vlan features are also supported in ks8995ma/fq, such as ?vlan ingress filtering? and ?discard non pvid? defined in register 18 bit 6 and bit 5. these features can be controlled on a port basis. rate limit support ks8995ma/fq supports hardware rate limiting on ?receive? and ?transmit? independently on a per port basis. it also supports rate limiting in a priority or non-priority environment. the rate limit starts from 0kbps and goes up to the line rate in steps of 32kbps. the ks8995ma/fq uses one second as an interval. at the beginning of each interval, the counter is cleared to zero, and the rate limit mechanism starts to count the number of bytes during this interval. for receive, if the number of bytes exceeds the programmed limi t, the switch will stop receiving packets on the port until the ?one second? interval expires. there is an option provided fo r flow control to prevent packet loss. if the rate limit is programmed greater than or equal to 128kbp s and the byte coun ter is 8k bytes below the li mit, the flow control will be triggered. if the rate limit is programmed lower than 128kbps and the byte counter is 2k bytes below the limit, the flow control will be triggered. for transmit, if the number of bytes e xceeds the programmed limit, the switch w ill stop transmitting packets on the port until the ?one second? interval expires. if priority is enabled, the ks8995ma/fq can support different rate controls for both high priority and low priority packets. this can be programmed through registers 21 ? 27.
micrel, inc. ks8995ma/fq october 2011 41 m9999-102611-3.0 configuration interface the ks8995ma/fq can function as a managed switch or unmanaged switch. if no eeprom or micro-controller exists, the ks8995ma/fq will operate from its default setting. some default settings are configured via strap in options as indicated in the following tables. pin # pin name pu/pd (1) description (1) 1 mdi-xdis ipd disable auto mdi/mdi-x. pd = (default) = normal operation pu = disable auto mdi/mdi-x on all ports. 45 mux1 nc factory test pins. mux1 and mux2 should be left unconnected for normal operation. 46 mux2 nc mode mux1 mux2 normal operation nc nc 62 pmrxd3 ipd/o phy[5] mii receive bit 3. strap option: pd ( default) = enable flow control; pu = disable flow control. 63 pmrxd2 ipd/o phy[5] mii receive bit 2. strap option: pd (default) = disable back pressure; pu = enable back pressure. 64 pmrxd1 ipd/o phy[5] mii receive bit 1. strap option: pd (default) = drop excessive collision packets; pu = does not drop excessive collision packets. 65 pmrxd0 ipd/o phy[5] mii receive bit 0. strap option: pd (default) = disable aggressive back-off algorithm in half-duplex mode; pu = enable for performance enhancement. 66 pmrxer ipd/o phy[5] mii receive error. strap option: pd (default) = 1522/1518 bytes; pu = packet size up to 1536 bytes. 67 pcrs ipd/o phy[5] mii carrier sense/strap option for port 4 only. pd (default) = force half-duplex if auto-negotiation is disabled or fails. pu = fo rce full-duplex if auto-negotiation is disabled or fails. refer to register 76. 68 pcol ipd/o phy[5] mii collision detect/strap option for por t 4 only. pd (default) = no force flow control. pu = force flow cont rol. refer to register 66. 80 smrxd3 ipd/o switch mii receive bit 3. strap option: pd ( default) = disable switch mii full-duplex flow control; pu = enable switch m ii full-duplex flow control. 81 smrxd2 ipd/o switch mii receive bit 2. strap option: pd (default) = switch mii in full-duplex mode; pu = switch mii in half-duplex mode. 82 smrxd1 ipd/o switch mii receive bit 1. strap option: pd (default) = switch mii in 100mbps mode; pu = switch mii in 10mbps mode. 83 smrxd0 ipd/o switch mii receive bit 0. st rap option: led mode pd (def ault) = mode 0; pu = mode 1. see ?register 11.? mode 0 mode 1 ledx_2 lnk/act 100lnk/act ledx_1 fulld/col 10lnk/act ledx_0 speed fulld note: 1. nc = no connect. ipd = input w/internal pull-down. ipd/o = input w/internal pull-down during reset, output pin otherwise. fulld = full duplex.
micrel, inc. ks8995ma/fq october 2011 42 m9999-102611-3.0 pin # pin name pu/pd (1) description (1) 86 sconf1 ipd dual mii configuration pin. for the switch mii, ksz8995ma supports both mac mode and phy mode, KSZ8995FQ supports phy mode only. pins 91, 86, 87 switch mii phy [5] mii 000 disable, otri disable, otri 001 phy mode mii disable, otri 010 mac mode mii disable, otri 011 phy mode sni disable, otri 100 disable disable 101 phy mode mii phy mode mii 110 mac mode mii phy mode mii 111 phy mode sni phy mode mii 87 sconf0 ipd dual mii configuration pin. 90 led5-2 ipu/o led indicator 2. strap option: aging setup. see ?aging? section pu (default) = aging enable; pd = aging disable. 91 led5-1 ipu/o led indicator 1. strap option: pu (default) : enable phy[5] mii i/f. pd: tristate all phy[5] mii output. see ?pin 86 sconf1.? 113 ps1 ipd serial bus configuration pin. for this case, if the eeprom is not present, the ks8995ma/fq will start itself with the ps[1:0] =00 default register values . pin configuration seri al bus configuration ps[1:0]=00 i 2 c master mode for eeprom ps[1:0]=01 reserved ps[1:0]=10 spi slave mode for cpu interface ps[1:0]=11 factory test mode (bist) 114 ps0 ipd serial bus configuration pin. see ?pin 113.? 128 test2 nc nc for normal oper ation. factory test pin. note: 1. nc = no connect. ipd = input w/internal pull-down. ipd/o = input w/internal pull-down during reset, output pin otherwise. otri = output tristated.
micrel, inc. ks8995ma/fq october 2011 43 m9999-102611-3.0 i 2 c master serial bus configuration if a 2-wire eeprom exists, the ks8995ma/fq can perform more advanced features like broadcast storm protection and rate control. the eeprom should have the entire valid configur ation data from register 0 to register 109 defined in the ?memory map,? except the status register s. after reset, the ks8995ma/fq will start to read all 110 registers sequentially from the eeprom. the configuration access time (t prgm ) is less than 15ms as shown in figure 8. .... .... .... rst_n scl sd a t prgm <15 ms figure 8. ks8995ma/fq eeprom c onfiguration timing diagram to configure the ks8995ma/fq with a pre-configured eeprom use the following steps: 1. at the board level, connect pi n 110 on the ks8995ma/fq to the scl pin on the eeprom. connect pin 111 on the ks8995ma/fq to the sda pin on the eeprom. 2. set the input signals ps[1:0] (pins 113 and 114, respectively) to ?00.? this puts the ks8995ma/fq serial bus configuration into i 2 c master mode. 3. be sure the board-level reset signal is connected to the ks8995ma/fq reset signal on pin 115 (rst_n). 4. program the contents of the eeprom be fore placing it on the board with the desired configuration data. note that the first byte in the eeprom must be ?95? for the loading to oc cur properly. if this value is not correct, all other data will be ignored. 5. place the eeprom on the board and pow er up the board. assert the active-low board level reset to rst_n on the ks8995ma/fq. after the reset is de-asserted, the ks8995m a/fq will begin reading configuration data from the eeprom. the configurat ion access time (t prgm ) is less than 15ms. note : for proper operation, make sure that pin 47 (p wrdn_n) is not asserted during the reset operation. spi slave serial bus configuration the ks8995ma/fq can also act as an spi slave device. throu gh the spi, the entire feature set can be enabled, including ?vlan,? ?igmp snooping,? ?mib counters,? etc. the external master device can access any r egister from register 0 to register 127 randomly. the system should configure a ll the desired settings before enabling the switch in the ks8995ma/fq. to enable the switch, write a "1" to register 1 bit 0. two standard spi commands are supported (00000011 for ?read data,? and 00000010 for ?write data?). to speed configuration time, the ks8995ma/fq also supports multiple read s or writes. after a byte is written to or read from the ks8995ma/fq, the internal address counter automatically increments if the spi sl ave select signal (spis_n) continues to be driven low. if spis_n is kept low after the first byte is read, the next byte at the nex t address will be shifted out on spiq. if spis_n is kept low after the firs t byte is written, bits on the master ou t slave input (spid) line will be written to the next address. asserting spis_ n high terminates a read or write operation. this means that the spis_n signal must be asserted high and then low again before issuing another command and address. the address counter wraps back to zero once it reaches the highest address . therefore the entire regist er set can be written to or read from by issuing a single command and address. the ks8995ma/fq is able to support a 5mhz spi bus. a high-performance spi master is recommended to prevent internal counter overflow.
micrel, inc. ks8995ma/fq october 2011 44 m9999-102611-3.0 to use the ks8995ma/fq spi: 1. at the board level, connect ks8995ma/fq pins as follows: ks8995ma/fq pin number ks8995ma/fq signal name microprocessor signal description 112 spis_n spi slave select 110 spic spi clock 111 spid master out slave input 109 spiq master in slave output table 9. spi connections 2. set the input signals ps[1:0] (pins 113 and 114, respectively) to ?10? to set the serial configuration to spi slave mode. 3. power up the board and assert a reset signal. after reset wait 100s, the start switch bit in register 1 will be set to ?0?. configure the desired settings in the ks8995ma/fq before setting the start register to ?1.' 4. write configuration to registers using a typical spi write data cycle as shown in figure 9 or spi multiple write as shown in figure 11. note that data input on spi d is registered on the rising edge of spic. 5. registers can be read and configuration can be verified with a typical spi read data cycle as shown in figure 10 or a multiple read as shown in figure 12. note that read data is registered out of spiq on the falling edge of spic. 6. after configuration is written and verified, write a ?1? to register 1 bit 0 to begin ks8995ma/fq operation. spiq spic spid spis_n 00000010 x a7 a6 a5 a4 a3 a2 a1 a0 write command write address write data d2 d0 d1 d3 d4 d5 d6 d7 figure 9. spi write data cycle spiq spic spid spis_n 00000011 x a7 a6 a5 a4 a3 a2 a1 a0 d7 d6 d5 d4 d3 d2 d1 d0 read command read address read data figure 10. spi read data cycle
micrel, inc. ks8995ma/fq october 2011 45 m9999-102611-3.0 spiq spic spid spis_n 00000010 x a7 a6 a5 a4 a3 a2 a1 a0 write command write address byte 1 d2 d0 d1 d3 d4 d5 d6 d7 spiq spic spid spis_n d7 d6 d5 d4 d4 d2 d1 d0 d7 d6 d5 d4 d3 d2 d1 d0 byte 2 byte 3 ... byte n d2 d0 d1 d3 d4 d5 d6 d7 figure 11. spi multiple write spiq spic spid spis_n 00000011 x a7 a6 a5 a4 a3 a2 a1 a0 d7 d6 d5 d4 d3 d2 d1 d0 read command read address byte 1 xxxxxxxx xxxxxxx x byte 2 byte 3 ... byte n x x x x x x x x xxxxxxxx d7 d6 d5 d4 d3 d2 d1 d0 d7 d6 d5 d4 d3 d2 d1 d0 d7 d6 d5 d4 d3 d2 d1 d0 spiq spic spid spis_n figure 12. spi multiple read mii management interface (miim) a standard miim interface is provided for all five ph y devices in the ks8995ma/fq. an external device with mdc/mdio capability is able to read phy status or to conf igure phy settings. the device is able to meet ieee specification of 2.5mhz m dc clock. for details on the miim interf ace standard please re ference the ieee 802.3 specification (section 22.2.4.5). the miim interface does not have access to all the configuration registers in the ks8995ma/fq. it can only access the standard mii registers. se e ?miim registers.? the spi interface, on the other hand, can be used to access the entire ks8995ma/fq feature set.
micrel, inc. ks8995ma/fq october 2011 46 m9999-102611-3.0 register description offset description decimal hex 0 ? 1 0x00-0x01 chip id registers 2 ? 11 0x02-0x0b global control registers 12 ? 15 0x0c-0x0f reserved 16 ? 29 0x10-0x1d port 1 control registers 30 ? 31 0x1e-0x2f port 1 status registers 32 ? 45 0x20-0x2d port 2 control registers 46 ? 47 0x2e-0x2f port 2 status registers 48 ? 61 0x30-0x3d port 3 control registers 62 ? 63 0x3e-0x3f port 3 status registers 64 ? 77 0x40-0x4d port 4 control registers 78 ? 79 0x4e-0x4f port 4 status registers 80 ? 93 0x50-0x5d port 5 control registers 94 ? 95 0x5e-0x5f port 5 status registers 96 ? 103 0x60-0x67 tos priority control registers 104 ? 109 0x68-0x6d mac address registers 110 ? 111 0x6e-0x6f indirect access control registers 112 ? 120 0x70-0x78 indirect data registers 121 ? 122 0x79-0x7a digital test ing status registers 123 ? 124 0x7b-0x7c digital testing control registers 125 ? 126 0x7d-0x7e analog testing control registers 127 0x7f analog testing status register
micrel, inc. ks8995ma/fq october 2011 47 m9999-102611-3.0 global registers address name description mode default register 0 (0x00): chip id0 7 ? 0 family id chip family. ro 0x95 address name description mode default register 1 (0x01): chip id1 / start switch 7 ? 4 chip id 0x0 is assigned to m series. (95ma) ro 0x0 3 ? 1 revision id revision id ro based on real chip revision. 0x02=b2, 0x03=b3, 0x04=b4, 0x05=b5, etc. 0 start switch 1, start the chip when external pins (ps1, ps0) = (1,0) or (0,1). note: in (ps1,ps0) = (0,0) mode, the chip will start automatically, after trying to read the external eeprom. if eeprom does not exist, the chip will use default values for all internal registers. if eeprom is present, the contents in the eeprom will be checked. the switch will check: (1) register 0 = 0x95, (2) register 1 [7:4] = 0x0. if this check is ok, the contents in the eeprom will override chip register default values =0, chip will not start when external pins (ps1, ps0) = (1,0) or (0,1). note: (ps1, ps0) = (1,1) for factory test only. rw 0x0 address name description mode default register 2 (0x02): global control 0 7 reserved reserved. r/w 0x0 6 ? 4 802.1p base priority used to classify priority for incoming 802.1q packets ?user priority? is compared against this value : classified as high priority. < : classified as low priority. r/w 0x4 3 enable phy mii 1, enable phy mii-p5 interface. note: if not enabled, the switch will tri-state all outputs. r/w pin led5-1 strap option. pull-down (0): isolate. pull-up (1): enable. note: led[5][1] has internal pull- up. 2 buffer share mode 1, buffer pool is shared by all ports. a port can use more buffer when other ports are not busy. 0, a port is only allowed to use 1/5 of the buffer pool. r/w 0x1
micrel, inc. ks8995ma/fq october 2011 48 m9999-102611-3.0 global registers (continued) address name description mode default register 2 (0x02): global control 0 1 unh mode 1, the switch will drop packets wi th 0x8808 in t/l filed, or da=01-80- c2-00-00-01. 0, the switch will drop packets qual ified as ?flow control? packets. r/w 0 0 link change age 1, link change from ?link? to ?no link? will cause fast aging (<800s) to age address table faster. after an age cycle is complete, the age logic will return to normal (300 + 75 seconds ). note: if any port is unplugged, all addresses will be automatically aged out. r/w 0 address name description mode default register 3 (0x03): global control 1 7 pass all frames 1, switch all packets including bad ones. used solely for debugging purpose. works in conjunction with sniffer mode. r/w 0 6 reserved reserved. r/w 0 5 ieee 802.3x transmit flow control disable 0, will enable transmit flow control based on an result. 1, will not enable transmit flow control regardless of an result. r/w pin pmrxd3 strap option. pull-down(0): enable tx flow control. pull-up(1): disable tx/rx flow control. note: pmrxd3 has internal pull- down. 4 ieee 802.3x receive flow control disable 0, will enable receive flow control based on an result. 1, will not enable receive flow control regardless of an result. note: bit 5 and bit 4 default values ar e controlled by the same pin, but they can be programmed independently. r/w pin pmrxd3 strap option. pull-down (0): enable rx flow control. pull-up (1): disable tx/rx flow control. note: pmrxd3 has internal pull- down. 3 frame length field check 1, will check frame length field in the ieee packets. if the actual length does not matc h, the packet will be dropped (for l/t <1500) . r/w 0 2 aging enable 1, enable age function in the chip. 0, disable aging function. r/w pin led[5][2] strap option. pull-down (0): aging disable pull-up (1): aging enable. note: led[5][2] has internal pull up.
micrel, inc. ks8995ma/fq october 2011 49 m9999-102611-3.0 global registers (continued) address name description mode default 1 fast age enable 1 = turn on fast age (800s). r/w 0 0 aggressive back off enable 1 = enable more aggressive back-off algorithm in half duplex mode to enhance performance. this is not an ieee standard. r/w pin pmrxd0 strap option. pull-down (0): disable aggressive back off. pull- up (1): aggressive back off. note: pmrxd0 has internal pull down. address name description mode default register 4 (0x04): global control 2 7 unicast port-vlan mismatch discard this feature is used for port vlan ( described in register 17, register 33...). 1, all packets can not cross vlan boundary. 0, unicast packets (excluding unknown/ multicast/broadcast) can cross vlan boundary. r/w 1 6 multicast storm protection disable 1, ?broadcast storm protection? does not include multicast packets. only da=ffffffffffff packets will be regulated. 0, ?broadcast storm protection? includes da = ffffffffffff and da[40] = 1 packets. r/w 1 5 back pressure mode 1, carrier sense based backpressure is selected. 0, collision based backpressure is selected. r/w 1 4 flow control and back pressure fair mode 1, fair mode is selected. in this mode, if a flow control port and a non- flow control port talk to the same destination port, packets from the non-flow control port may be dropped. this is to prevent the flow control port from being flow controlled for an extended period of time. 0, in this mode, if a flow control port and a non-flow control port talk to the same destination port, the flow control port will be flow controlled. this may not be ?fair? to the flow control port. r/w 1 3 no excessive collision drop 1, the switch will not drop packets when 16 or more collisions occur. 0, the switch will drop packets w hen 16 or more collisions occur. r/w pin pmrxd1 strap option. pull-down (0): drop excessive collision packets. pull-up (1): don?t drop excessive collision packets. note: pmrxd1 has internal pull- down. 2 huge packet support 1, will accept packet sizes up to 1916 bytes (inclusive). this bit setting will override setting from bit 1 of the same register. 0, the max packet size will be determined by bit 1 of this register. r/w 0
micrel, inc. ks8995ma/fq october 2011 50 m9999-102611-3.0 global registers (continued) address name description mode default register 4 (0x04): global control 2 1 legal maximum packet size check disable 1, will accept packet sizes up to 1536 bytes (inclusive). 0, 1522 bytes for tagged packets (not including packets with stpid from cpu to ports 1-4), 1518 bytes for untagged packets. any packets larger than the specified value will be dropped. r/w pin pmrxer strap option. pull-down (0): 1518/1522 byte packets. pull-up (1): 1536 byte packets. note: pmrxer has internal pull-down. 0 priority buffer reserve 1, each output queue is pre-allocated 48 buffers, used exclusively for high priority packets. it is recommended to enable this when priority queue feature is turned on. 0, no reserved buffers for high priority packets. r/w 0 address name description mode default register 5 (0x05): global control 3 7 802.1q vlan enable 1, 802.1q vlan mode is turned on. vlan table needs to set up before the operation. 0, 802.1q vlan is disabled. r/w 0 6 igmp snoop enable on switch mii interface 1, igmp snoop enabled. all the igmp packets will be forwarded to switch mii port. 0, igmp snoop disabled. r/w 0 5 enable direct mode on switch mii interface 1, direct mode on port 5. this is a special mode for the switch mii interface. using pr eamble before mrxdv to direct switch to forward packets, bypassing internal look-up. 0, normal operation. r/w 0 4 enable pre-tag on switch mii interface 1, packets forwarded to switch mii interface will be pre-tagged with the source port number (preamble before mrxdv). 0, normal operation. r/w 0 3 ? 2 priority scheme select 00 = always deliver high priority packets first. 01 = deliver high/low packets at ratio 10/1. 10 = deliver high/low packets at ratio 5/1. 11 = deliver high/low packets at ratio 2/1. r/w 00 1 enable ?tag? mask 1, the last 5 digits in the vid field are used as a mask to determine which port(s) the packet should be forwarded to. 0, no tag masks. r/w 0 0 sniff mode select 1, will do rx and tx sniff (both source port and destination port need to match). 0, will do rx or tx sniff (either source port or destination port needs to match). this is the mode used to implement rx only sniff. r/w 0
micrel, inc. ks8995ma/fq october 2011 51 m9999-102611-3.0 global registers (continued) address name description mode default register 6 (0x07): global control 4 7 switch mii back pressure enable 1, enable half-duplex back pressure on switch mii interface. 0, disable back pressure on switch mii interface. r/w 0 6 switch mii half-duplex mode 1, enable mii interface half-duplex mode. 0, enable mii interface full-duplex mode. r/w pin smrxd2 strap option. pull-down (0): full-duplex mode. pull-up (1): half- duplex mode. note: smrxd2 has internal pull- down. 5 switch mii flow control enable 1, enable full-duplex flow contro l on switch mii interface. 0, disable full-duplex flow c ontrol on switch mii interface. r/w pin smrxd3 strap option. pull-down (0): disable flow control. pull-up(1): enable flow control. note: smrxd3 has internal pull- down. 4 switch mii 10bt 1, the switch interface is in 10mbps mode. 0, the switch interface is in 100mbps mode. r/w pin smrxd1 strap option. pull-down (0): enable 100mbps. pull-up (1): enable 10mpbs. note: smrxd1 has internal pull- down. 3 null vid replacement 1, will replace null vid with port vid (12 bits). 0, no replacement for null vid. r/w 0 2 ? 0 broadcast storm protection rate bit [10:8] this along with the next register determines how many ?64 byte blocks? of packet data allowed on an input port in a preset period. the period is 50ms for 100bt or 500ms for 10bt. the default is 1%. r/w 000 address name description mode default register 7 (0x07): global control 5 7 ? 0 broadcast storm protection rate bit [7:0] this along with the previous register determines how many ?64 byte blocks? of packet data are allowed on an input port in a preset period. the period is 50ms for 100bt or 500ms for 10bt. the default is 1%. r/w 0x4a (1) address name description mode default register 8 (0x08): global control 6 7 ? 0 factory testing reserved r/w 0x24 address name description mode default register 9 (0x09): global control 7 7 ? 0 factory testing reserved r/w 0x28 note: 148,800 frames/sec 50ms/interval 1% = 74 frames/interval (approx.) = 0x4a.
micrel, inc. ks8995ma/fq october 2011 52 m9999-102611-3.0 global registers (continued) address name description mode default register 10 (0x0a): global control 8 7 ? 0 factory testing reserved r/w 0x24 address name description mode default register 11 (0x0b): global control 9 7 ? 5 reserved n/a ro 0 4 reserved n/a ro 0 3 reserved n/a ro 0 2 factory setting reserved r/w 0 1 led mode 0 = led mode 0. 1 = led mode 1. mode 0, link at: 100/full ledx[2,1,0]=0,0,0 100/half ledx[2,1,0]=0,1,0 10/full ledx[2,1,0]=0,0,1 10/half ledx[2,1,0]=0,1,1 mode 1, link at: 100/full ledx[2,1,0]=0,1,0 100/half ledx[2,1,0]=0,1,1 10/full ledx[2,1,0]=1,0,0 10/half ledx[2,1,0]=1,0,1 (0=led on, 1=led off) r/w pin smrxd- strap option. pull- down(0): enabled led mode 0. pull- up(1): enabled led mode 1. note: smpxd0 has internal pull- down 0. mode 0 mode 1 ledx_2 lnk/act 100lnk/act ledx_1 fulld/col 10lnk/act ledx_0 speed fulld 0 special tipd mode 1 = enable special tag mode. 0 = disable special tag mode. r/w 0
micrel, inc. ks8995ma/fq october 2011 53 m9999-102611-3.0 port registers the following registers are used to enabl e features that are assigned on a per port basis. the register bit assignments are the same for all ports, but the addres s for each port is different, as indicated. address name description mode default register 16 (0x10): port 1 control 0 register 32 (0x20): port 2 control 0 register 48 (0x30): port 3 control 0 register 64 (0x40): port 4 control 0 register 80 (0x50): port 5 control 0 7 broadcast storm protection enable 1, enable broadcast storm protection for ingress packets on the port. 0, disable broadcast storm protection. r/w 0 6 diffserv priority classification enable 1, enable diffserv priority classi fication for ingress packets on port. 0, disable diffserv function. r/w 0 5 802.1p priority classification enable 1, enable 802.1p priority classi fication for ingress packets on port. 0, disable 802.1p. r/w 0 4 port-based priority classification enable 1, ingress packets on the port will be classified as high priority if ?diffserv? or ?802. 1p? classification is not enabled or fails to classify. 0, ingress packets on port will be classified as low priority if ?diffserv? or ?802.1p? classification is not enabled or fails to classify. note: ?diffserv?, ?802.1p? and port priority can be enabled at the same time. the or?ed result of 802.1p and dscp overwrites the port priority. r/w 0 3 reserved reserved r/w 0 2 tag insertion 1, when packets are output on the port, the switch will add 802.1q tags to packets without 802.1q tags when received. the switch will not add tags to packets already tagged. the tag inserted is the ingr ess port?s ?port vid.? 0, disable tag insertion. r/w 0 1 tag removal 1, when packets are output on the port, the switch will remove 802.1q tags from packets with 802.1q tags when received. the switch will not modify packets received without tags. 0, disable tag removal. r/w 0 0 priority enable 1, the port output queue is split into high and low priority queues. 0, single output queue on the port. there is no priority differentiation even though packets are classified into high or low priority. r/w 0
micrel, inc. ks8995ma/fq october 2011 54 m9999-102611-3.0 port registers (continued) address name description mode default register 17 (0x11): port 1 control 1 register 33 (0x21): port 2 control 1 register 49 (0x31): port 3 control 1 register 65 (0x41): port 4 control 1 register 81 (0x51): port 5 control 1 7 sniffer port 1, port is designated as sniffer port and will transmit packets that are monitored. 0, port is a normal port. r/w 0 6 receive sniff 1, all the packets received on the port will be marked as ?monitored packets? and forwarded to the designated ?sniffer port.? 0, no receive monitoring. r/w 0 5 transmit sniff 1, all the packets transmitted on the port will be marked as ?monitored packets? and forwarded to the designated ?sniffer port.? 0, no transmit monitoring. r/w 0 4 ? 0 port vlan membership define the port?s port vlan mem bership. bit 4 stands for port 5, bit 3 for port 4...bit 0 for port 1. the port can only communicate within the membership. a ?1? includes a port in the membership, a ?0? excludes a port from membership. r/w 0x1f register 18 (0x12): port 1 control 2 register 34 (0x22): port 2 control 2 register 50 (0x32): port 3 control 2 register 66 (0x42): port 4 control 2 register 82 (0x52): port 5 control 2 7 reserved reserved 0x0 6 ingress vlan filtering. 1, the switch will discard packa tes whose vid port membership in vlan table bit[20:16] does not include the ingress port. 0, no ingress vlan filtering. r/w 0 5 discard non-pvid packets 1, the switch will discard packets whose vid does not match ingress port default vid. 0, no packets will be discarded. r/w 0 4 force flow control 1, will always enable rx and tx flow control on the port, regardless of an result. 0, the flow control is enabled based on an result. r/w 0 for port 4 only, there is a special configuration pin to set the default, pin pcol strap option. pull- down (0): no force flow control. pull- up (1): force flow control. note: pcol has internal pull-down .
micrel, inc. ks8995ma/fq october 2011 55 m9999-102611-3.0 port registers (continued) address name description mode default register 18 (0x12): port 1 control 2 register 34 (0x22): port 2 control 2 register 50 (0x32): port 3 control 2 register 66 (0x42): port 4 control 2 register 82 (0x52): port 5 control 2 3 back pressure enable 1, enable port half-duplex back pressure. 0, disable port half-duplex back pressure. r/w pin pmrxd2 strap option. pull-down (0): disable back pressure. pull-up(1): enable back pressure. note: pmrxd2 has internal pull- down. 2 transmit enable 1, enable packet transmission on the port. 0, disable packet transmission on the port. r/w 1 1 receive enable 1, enable packet reception on the port. 0, disable packet reception on the port. r/w 1 0 learning disable 1, disable switch addre ss learning capability. 0, enable switch address learning. r/w 0 note: bits 2-0 are used for spanning tree s upport. see ?spanning tree support? section. address name description mode default register 19 (0x13): port 1 control 3 register 35 (0x23): port 2 control 3 register 51 (0x33): port 3 control 3 register 67 (0x43): port 4 control 3 register 83 (0x53): port 5 control 3 7 ? 0 default tag [15:8] port?s default tag, containing: 7-5: user priority bits 4: cfi bit 3-0 : vid[11:8] r/w 0 register 20 (0x14): port 1 control 4 register 36 (0x24): port 2 control 4 register 52 (0x34): port 3 control 4 register 68 (0x44): port 4 control 4 register 84 (0x54): port 5 control 4 7 ? 0 default tag [7:0] default port 1?s tag, containing: 7-0: vid[7:0] r/w 1 note: registers 19 and 20 (and those corresponding to other ports) se rve two purposes: (1) associated with the ingress untagged packe ts, and used for egress tagging; (2) default vid for the ingress untagged or null-vid-tagged packets, and used for address look up.
micrel, inc. ks8995ma/fq october 2011 56 m9999-102611-3.0 port registers (continued) address name description mode default register 21 (0x15): port 1 control 5 register 37 (0x25): port 2 control 5 register 53 (0x35): port 3 control 5 register 69 (0x45): port 4 control 5 register 85 (0x55): port 5 control 5 7 ? 0 transmit high priority rate control [7:0] this along with port control 7, bits [3:0] form a 12-bit field to determine how many ?32kbps? high priority blocks can be transmitted (in a unit of 4k by tes in a one second period). r/w 0 address name description mode default register 22 (0x16): port 1 control 6 register 38 (0x26): port 2 control 6 register 54 (0x36): port 3 control 6 register 70 (0x46): port 4 control 6 register 86 (0x56): port 5 control 6 7 ? 0 transmit low priority rate control [7:0] this along with port control 7, bits [7:4] form a 12-bit field to determine how many ?32kbps? low priority blocks can be transmitted (in a unit of 4k by tes in a one second period). r/w 0 address name description mode default register 23 (0x17): port 1 control 7 register 39 (0x27): port 2 control 7 register 55 (0x37): port 3 control 7 register 71 (0x47): port 4 control 7 register 87 (0x57): port 5 control 7 7 ? 4 transmit low priority rate control [11:8] this along with port control 6, bits [7:0] form a 12-bit field to determine how many ?32kbps? low priority blocks can be transmitted (in a unit of 4k by tes in a one second period). r/w 0 3 ? 0 transmit high priority rate control [11:8] this along with port control 5, bits [7:0] form a 12-bit field to determine how many ?32kbps? high priority blocks can be transmitted (in unit of 4k bytes in a one second period). r/w 0 address name description mode default register 24 (0x18): port 1 control 8 register 40 (0x28): port 2 control 8 register 56 (0x38): port 3 control 8 register 72 (0x48): port 4 control 8 register 88 (0x58): port 5 control 8 7 ? 0 receive high priority rate control [7:0] this along with port control 10, bi ts [3:0] form a 12-bit field to determine how many ?32kbps? high priority blocks can be received (in a unit of 4k bytes in a one second period). r/w 0
micrel, inc. ks8995ma/fq october 2011 57 m9999-102611-3.0 port registers (continued) address name description mode default register 25 (0x19): port 1 control 9 register 41 (0x29): port 2 control 9 register 57 (0x39): port 3 control 9 register 73 (0x49): port 4 control 9 register 89 (0x59): port 5 control 9 7 ? 0 receive low priority rate control [7:0] this along with port control 10, bits [7:4] form a 12-bit field to determine how many ?32kbps? low priority blocks can be received (in a unit of 4k bytes in a one second period). r/w 0 address name description mode default register 26 (0x1a): port 1 control 10 register 42 (0x2a): port 2 control 10 register 58 (0x3a): port 3 control 10 register 74 (0x4a): port 4 control 10 register 90 (0x5a): port 5 control 10 7 ? 4 receive low priority rate control [11:8] this along with port control 9, bits [7:0] form a 12-bit field to determine how many ?32kbps? low priority blocks can be received (in a unit of 4k bytes in a one second period). r/w 0 3 ? 0 receive high priority rate control [11:8] this along with port control 8, bits [7:0] form a 12-bit field to determine how many ?32kbps? high priority blocks can be received (in a unit of 4k bytes in a one second period). r/w 0 address name description mode default register 27 (0x1b): port 1 control 11 register 43 (0x2b): port 2 control 11 register 59 (0x3b): port 3 control 11 register 75 (0x4b): port 4 control 11 register 91 (0x5b): port 5 control 11 7 receive differential priority rate control 1, if bit 6 is also ?1? this will enable receive rate control for this port on low priority packets at the low priority rate. if bit 5 is also ?1?, this will enable receive rate control on high priority packets at the high priority rate. 0, receive rate control will be based on the low priority rate for all packets on this port. r/w 0 6 low priority receive rate control enable 1, enable port?s low priority rece ive rate control feature. 0, disable port?s low priority receive rate control. r/w 0 5 high priority receive rate control enable 1, if bit 7 is also ?1? this will enable the port?s high priority receive rate control feature. if bi t 7 is a ?0? and bit 6 is a ?1?, all receive packets on this port will be rate controlled at the low priority rate. 0, disable port?s high priority receive rate control feature. r/w 0 4 low priority receive rate flow control enable 1, flow control may be asserted if the port?s low priority receive rate is exceeded. 0, flow control is not asserted if the port?s low priority receive rate is exceeded. r/w 0
micrel, inc. ks8995ma/fq october 2011 58 m9999-102611-3.0 port registers (continued) address name description mode default register 27 (0x1b): port 1 control 11 register 43 (0x2b): port 2 control 11 register 59 (0x3b): port 3 control 11 register 75 (0x4b): port 4 control 11 register 91 (0x5b): port 5 control 11 3 high priority receive rate flow control enable 1, flow control may be asserted if the port?s high priority receive rate is exceeded. to use this, differential receive rate control must be on. 0, flow control is not asserted if the port?s high priority receive rate is exceeded. r/w 0 2 transmit differential priority rate control 1, transmit rate control on both high and low priority packets based on the rate counters defined by the high and low priority packets respectively. 0, transmit rate control on any packets. the rate counters defined in low priority will be used. r/w 0 1 low priority transmit rate control enable 1, enable the port?s low priority transmit rate control feature. 0, disable the port?s low priority transmit rate control feature. r/w 0 0 high priority transmit rate control enable 1, enable the port?s high priority transmit rate control feature. 0, disable the port?s high priority transmit rate control feature. r/w 0 address name description mode default register 28 (0x1c): port 1 control 12 register 44 (0x2c): port 2 control 12 register 60 (0x3c): port 3 control 12 register 76 (0x4c): port 4 control 12 register 92 (0x5c): port 5 control 12 7 disable auto-negotiation 1, disable auto-negotiation, speed and duplex are decided by bit 6 and 5 of the same register. 0, auto-negotiation is on. r/w 0 6 forced speed 1, forced 100bt if an is disabled (bit 7). 0, forced 10bt if an is disabled (bit 7). r/w 1 5 forced duplex 1, forced full-duplex if (1) an is disabled or (2) an is enabled but failed. 0, forced half-duplex if (1) an is disabled or (2) an is enabled but failed. r/w 0 for port 4 only, there is a special configure pin to set the default pin pcrs strap option. pull- down (0): force half-duplex. pull-up (1): force full- duplex. note: pcrs has internal pull down . 4 advertised flow control capability 1, advertise flow control capability. 0, suppress flow control capability from transmission to link partner. r/w 1
micrel, inc. ks8995ma/fq october 2011 59 m9999-102611-3.0 port registers (continued) address name description mode default register 28 (0x1c): port 1 control 12 register 44 (0x2c): port 2 control 12 register 60 (0x3c): port 3 control 12 register 76 (0x4c): port 4 control 12 register 92 (0x5c): port 5 control 12 3 advertised 100bt full- duplex capability 1, advertise 100bt full-duplex capability. 0, suppress 100bt full-duplex capability from transmission to link partner. r/w 1 2 advertised 100bt half- duplex capability 1, advertise 100bt half-duplex capability. 0, suppress 100bt half-duplex capability from transmission to link partner. r/w 1 1 advertised 10bt full- duplex capability 1, advertise 10bt full-duplex capability. 0, suppress 10bt full-duplex capability from transmission to link partner. r/w 1 0 advertised 10bt half- duplex capability 1, advertise 10bt half-duplex capability. 0, suppress 10bt half-duplex capability from transmission to link partner. r/w 1 note: port control 12 and 13, and port status 0 contents can be accessed by miim (mdc/mdio) interface via the standard miim register definition. address name description mode default register 29 (0x1d): port 1 control 13 register 45 (0x2d): port 2 control 13 register 61 (0x3d): port 3 control 13 register 77 (0x4d): port 4 control 13 register 93 (0x5d): port 5 control 13 7 led off 1, turn off all port?s leds (ledx_2, ledx_1, ledx_0, where ?x? is the port number). these pins will be driven high if this bit is set to one. 0, normal operation. r/w 0 6 txids 1, disable port?s transmitter. 0, normal operation. r/w 0 5 restart an 1, restart auto-negot iation. 0 = normal operation. r/w 0 4 disable far end fault 1, disable far end fault detection and pattern transmission. 0, enable far end fault detection and pattern transmission. r/w 0 3 power down 1, power down. 0, normal operation. r/w 0 2 disable auto mdi/mdi-x 1, disable auto mdi/mdi-x function. 0, enable auto mdi/mdi-x function. r/w 0 1 forced mdi 1, if auto mdi/mdi-x is disabled, force phy into mdi-x mode. 0, mdi mode. r/w 0 0 mac loopback 1, perform mac loopback. 0, normal operation. r/w 0
micrel, inc. ks8995ma/fq october 2011 60 m9999-102611-3.0 port registers (continued) address name description mode default register 30 (0x1e): port 1 status 0 register 46 (0x2e): port 2 status 0 register 62 (0x3e): port 3 status 0 register 78 (0x4e): port 4 status 0 register 94 (0x5e): port 5 status 0 7 mdix status 1, mdi-x. 0, mdi. ro 0 6 an done 1, an done. 0, an not done. ro 0 5 link good 1, link good. 0, link not good. ro 0 4 partner flow control capability 1, link partner flow control capable. 0, link partner not flow control capable. ro 0 3 partner 100bt full-duplex capability 1, link partner 100bt full-duplex capable. 0, link partner not 100bt full-duplex capable. ro 0 2 partner 100bt half-duplex capability 1, link partner 100bt half-duplex capable. 0, link partner not 100bt half-duplex capable. ro 0 1 partner 10bt full-duplex capability 1, link partner 10bt full-duplex capable. 0, link partner not 10bt full-duplex capable. ro 0 0 partner 10bt half-duplex capability 1, link partner 10bt half-duplex capable. 0, link partner not 10bt half-duplex capable. ro 0 address name description mode default register 31 (0x1f): port 1 control 14 register 47 (0x2f): port 2 control 14 register 63 (0x3f): port 3 control 14 register 79 (0x4f): port 4 control 14 register 95 (0x5f): port 5 control 14 7 phy loopback 1, perform phy loopback, i.e. loopback mac?s tx back to rx. 0, normal operation. r/w 0 6 remote loopback 1, perform remote loopback, i.e. loopback phy?s rx back to tx. 0, normal operation. r/w 0 5 phy isolate 1, electrical isolation of phy from mii and tx+/tx-. 0, normal operation. r/w 0 4 soft reset 1, phy soft reset. 0, normal operation. note: this bit is changed to self-cleared for b4 and b5 version parts. r/w 0 3 force link 1, force link in the phy. 0, normal operation. r/w 0 2 ? 1 reserved n/a ro 0 0 far end fault 1, far end fault status detected. 0, no far end fault status detected. ro 0
micrel, inc. ks8995ma/fq october 2011 61 m9999-102611-3.0 advanced control registers the ipv4 tos priority control registers implement a fully decoded 64 bit differentiated services code point (dscp) register used to determine priority from the 6 bit tos fiel d in the ip header. the most significant 6 bits of the tos field are fully decoded into 64 po ssibilities, and the singular code that results is compar ed against the corresponding bit in the dscp register. if the register bit is a 1, the priority is high; if it is a 0, the priority is low. address name description mode default register 96 (0x60): tos prio rity control register 0 7 ? 0 dscp[63:56] r/w 00000000 address name description mode default register 97 (0x61): tos prio rity control register 1 7 ? 0 dscp[55:48] r/w 00000000 address name description mode default register 98 (0x62): tos prio rity control register 2 7 ? 0 dscp[47:40] r/w 00000000 address name description mode default register 99 (0x63): tos prio rity control register 3 7 ? 0 dscp[39:32] r/w 00000000 address name description mode default register 100 (0x64): tos priority control register 4 7 ? 0 dscp[31:24] r/w 00000000 address name description mode default register 101 (0x65): tos priority control register 5 7 ? 0 dscp[23:16] r/w 00000000
micrel, inc. ks8995ma/fq october 2011 62 m9999-102611-3.0 advanced control registers (continued) address name description mode default register 102 (0x66): tos priority control register 6 7 ? 0 dscp[15:8] r/w 00000000 address name description mode default register 103 (0x67): tos priority control register 7 7 ? 0 dscp[7:0] r/w 00000000 registers 104 to 109 define the switching engine?s mac addr ess. this 48-bit address is used as the source address in mac pause control frames. address name description mode default register 104 (0x68): mac address register 0 7 ? 0 maca[47:40] r/w 0x00 address name description mode default register 105 (0x69): mac address register 1 7 ? 0 maca[39:32] r/w 0x10 address name description mode default register 106 (0x6a): mac address register 2 7 ? 0 maca[31:24] r/w 0xa1 address name description mode default register 107 (0x6b): mac address register 3 7 ? 0 maca[23:16] r/w 0xff address name description mode default register 108 (0x6c): mac address register 4 7 ? 0 maca[15:8] r/w 0xff
micrel, inc. ks8995ma/fq october 2011 63 m9999-102611-3.0 advanced control registers (continued) address name description mode default register 109 (0x6d): mac address register 5 7 ? 0 maca[7:0] r/w 0xff use registers 110 and 111 to read or write data to the static mac address table, vlan t able, dynamic address table, or the mib counters. address name description mode default register 110 (0x6e): indirect access control 0 7 ? 5 reserved reserved. r/w 000 4 read high write low 1, read cycle. 0, write cycle. r/w 0 3 ? 2 table select 00 = static mac address table selected. 01 = vlan table selected. 10 = dynamic address table selected. 11 = mib counter selected. r/w 0 1 ? 0 indirect address high bit 9-8 of indirect address. r/w 00 address name description mode default register 111 (0x6f): indirect access control 1 7 ? 0 indirect address low bit 7-0 of indirect address. r/w 00000000 note: write to register 111 will actually trigger a command. read or write access will be decided by bit 4 of register 110.
micrel, inc. ks8995ma/fq october 2011 64 m9999-102611-3.0 advanced control registers (continued) address name description mode default register 112 (0x70): indirect data register 8 68 ? 64 indirect data bit 68-64 of indirect data. r/w 00000 address name description mode default register 113 (0x71): indirect data register 7 63 ? 56 indirect data bit 63-56 of indirect data. r/w 00000000 address name description mode default register 114 (0x72): indirect data register 6 55 ? 48 indirect data bit 55-48 of indirect data. r/w 00000000 address name description mode default register 115 (0x73): indirect data register 5 47 ? 40 indirect data bit 47-40 of indirect data. r/w 00000000 address name description mode default register 116 (0x74): indirect data register 4 39 ? 32 indirect data bit 39-32 of indirect data. r/w 00000000 address name description mode default register 117 (0x75): indirect data register 3 31 ? 24 indirect data bit of 31-24 of indirect data r/w 00000000 address name description mode default register 118 (0x76): indirect data register 2 23 ? 16 indirect data bit 23-16 of indirect data. r/w 00000000 address name description mode default register 119 (0x77): indirect data register 1 15 ? 8 indirect data bit 15-8 of indirect data. r/w 00000000
micrel, inc. ks8995ma/fq october 2011 65 m9999-102611-3.0 advanced control registers (continued) address name description mode default register 120 (0x78): indirect data register 0 7 ? 0 indirect data bit 7-0 of indirect data. r/w 00000000 do not write or read to/from registers 121 to 127. doing so may prevent proper operation. micrel internal testing only. address name description mode default register 121 (0x79): digital testing status 0 7 ? 0 factory testing reserved. qm _split status ro 0x0 address name description mode default register 122 (0x7a): digital testing status 1 7 ? 0 factory testing reserved. debug[7:0] ro 0x0 address name description mode default register 123 (0x7b): digital testing control 0 7 ? 0 factory testing reserved. debug[12:8] r/w 0x0 address name description mode default register 124 (0x7c): digital testing control 1 7 ? 0 factory testing reserved. r/w 0x0 address name description mode default register 125 (0x7d): analog testing control 0 7 ? 0 factory testing reserved. r/w 0x0 address name description mode default register 126 (0x7e): analog testing control 1 7 ? 0 factory testing reserved. r/w 0x0 register 127 (0x7f): analog testing status 7 ? 0 factory testing reserved. ro 0x0
micrel, inc. ks8995ma/fq october 2011 66 m9999-102611-3.0 static mac address ks8995ma/fq has a static and a dynamic add ress table. when a da look-up is re quested, both tables will be searched to make a packet forwarding decision. when an sa look-up is requested, only the dynamic table is searched for aging, migration, and learning purposes. the stat ic da look-up result will have precedence over the dynamic da look-up result. if there are da matches in both tables, the result from the stat ic table will be used. the stat ic table can only be accessed and controlled by an external spi master (usually a processor). the entries in t he static table will not be aged out by ks8995ma/fq. an external device does a ll addition, modification and deletion. note : register bit assignments are different for static mac table reads and st atic mac table write, as shown below: address name description mode default format of static mac table for reads (8 entries) 60 ? 57 fid filter vlan id, representing on e of the 16 active vlans ro 0000 56 use fid 1, use (fid+mac) to look-up in static table. 0, use mac only to look-up in static table. ro 0 55 reserved reserved. ro n/a 54 override 1, override spanning tree ?transmit enable = 0? or ?receive enable = 0* setting. this bit is used for spanning tree implementation. 0, no override. ro 0 53 valid 1, this entry is valid, the look-up result will be used. 0, this entry is not valid. ro 0 52 ? 48 forwarding ports the 5 bits control the forward ports, example: 00001, forward to port 1 00010, forward to port 2 ?.. 10000, forward to port 5 00110, forward to port 2 and port 3 11111, broadcasting (excluding the ingress port) ro 00000 47 ? 0 mac address 48 bit mac address. ro 0x0 format of static mac table for writes (8 entries) 59 ? 56 fid filter vlan id, representing on e of the 16 active vlans. w 0000 55 use fid 1, use (fid+mac) to look-up in static table. 0, use mac only to look-up in static table. w 0 54 override 1, override spanning tree ?transmit enable = 0? or ?receive enable = 0? setting. this bit is used for spanning tree implementation. 0, no override. w 0 53 valid 1, this entry is valid, the look-up result will be used. 0, this entry is not valid. w 0 52 ? 48 forwarding ports the 5 bits control the forward ports, example: 00001, forward to port 1 00010, forward to port 2 ..... 10000, forward to port 5 00110, forward to port 2 and port 3 11111, broadcasting (excluding the ingress port) w 00000 47 ? 0 mac address 48-bit mac address. w 0x0
micrel, inc. ks8995ma/fq october 2011 67 m9999-102611-3.0 static address table examples (1) static address table read (read the 2nd entry) write to register 110 with 0x 10 (read static table selected) write to register 111 with 0x1 (trigger the read operation) then, read register 113 (60 ? 56) read register 114 (55 ? 48) read register 115 (47 ? 40) read register 116 (39 ? 32) read register 117 (31 ? 24) read register 118 (23 ? 16) read register 119 (15 ? 8) read register 120 (7 ? 0) static address table write examples (2) static address table wr ite (write the 8th entry) write to register 110 with 0x 10 (read static table selected) write register 113 (59 ? 56) write register 114 (55 ? 48) write register 115 (47 ? 40) write register 116 (39 ? 32) write register 117 (31 ? 24) write register 118 (23 ? 16) write register 119 (15 ? 8) write register 120 (7 ? 0) write to register 110 with 0x00 (write static table selected) write to register 111 with 0x7 (trigger the write operation)
micrel, inc. ks8995ma/fq october 2011 68 m9999-102611-3.0 vlan address the vlan table is used for vlan table look-up. if 802.1q vlan mode is enabled (register 5 bit 7 = 1), this table is used to retrieve vlan information that is associated with the ingr ess packet. the information includ es fid (filter id), vid (vlan id), and vlan membership described below: address name description mode default format of static vlan table (16 entries) 21 valid 1, the entry is valid. 0, entry is invalid. r/w 1 20 ? 16 membership specify which ports are members of the vlan. if a da look-up fails (no match in both static and dynamic tables), the packet associated with this vlan will be forwarded to ports specified in this field. e.g., 11001 means port 5, 4, and 1 are in this vlan. r/w 11111 15 ? 12 fid filter id. ks8995ma/fq supports 16 acti ve vlans represented by these four bit fields. fid is the mapped id. if 802.1q vlan is enabled, the look-up will be based on fid+da and fid+sa. r/w 0 11 ? 0 vid ieee 802.1q 12 bit vlan id. r/w 1 if 802.1q vlan mode is enabled, ks8995ma/fq assigns a vid to every ingress packet. if the packet is untagged or tagged with a null vid, the packet is assigned with the default port vid of the ingress port. if the packet is tagged with non-null vid, the vid in the tag is used. the look-up process st arts from the vlan table look-up. if the vid is not valid, the packet is dropped and no address learning occurs. if the vi d is valid, the fid is retr ieved. the fid+da and fid+sa lookups are performed. the fid+da look- up determines the forwarding ports. if fid+ da fails, the packet is broadcast to all the members (excluding the ingress port) of the vlan. if fid+sa fails, the fid+sa is learned. vlan table read example (1) vlan table read (read the 3rd entry) write to register 110 with 0x 14 (read vlan table selected) write to register 111 with 0x2 (trigger the read operation) then, read register 118 (vlan table bits 21-16) read register 119 (vlan table bits 15-8) read register 120 (vlan table bits 7-0) vlan table write example (2) vlan table write (write the 7th entry) write to register 118 (vlan table bits 21-16) write to register 119 (vlan table bits 15-8) write to register 120 (vlan table bits 7-0) write to register 110 with 0x04 (write vlan table selected) write to register 111 with 0x6 (trigger the write operation) note: the sequence of the writing entries should start from entry 0. im proper sequence of the vlan entri es could cause the vlan to be non-functional.
micrel, inc. ks8995ma/fq october 2011 69 m9999-102611-3.0 dynamic mac address the table below is read only; the conten ts are managed by the ks8995ma/fq only. address name description mode default format of dynamic mac address table (1k entries) 68 mac empty 1, there is no valid entry in the table. 0, there are valid entri es in the table. ro 1 67 ? 58 no of valid entries indicates how many valid entries in the table. 0x3ff means 1k entries 0x1 means 2 entries 0x0 and bit 68 = 0: means 1 entry 0x0 and bit 68 = 1: means 0 entry ro 0 57 ? 56 time stamp 2-bit counters for internal aging ro 55 data ready 1, the entry is not ready, retry until this bit is set to 0. 0, the entry is ready. ro 54 ? 52 source port the source port where fid+mac is learned. 000 port 1 001 port 2 010 port 3 011 port 4 100 port 5 ro 0x0 51 ? 48 fid filter id. ro 0x0 47 ? 0 mac address 48-bit mac address. ro 0x0 dynamic mac address table read example (1) dynamic mac address table re ad (read the 1st entry), and retrieve the mac table size write to register 110 with 0x18 (read dynamic table selected) write to register 111 with 0x0 (trigger the read operation) then, read register 112 (68-64) read register 113 (63-56); // the above two registers show # of entries read register 114 (55-48) // if bit 55 is 1, restart (reread) from this register read register 115 (47-40) read register 116 (39-32) read register 117 (31-24) read register 118 (23-16) read register 119 (15-8) read register 120 (7-0)
micrel, inc. ks8995ma/fq october 2011 70 m9999-102611-3.0 dynamic mac address table write example (2) dynamic mac address table read (read the 257th entry), without retr ieving # of entries information write to register 110 with 0x19 (read dynamic table selected) write to register 111 with 0x1 (trigger the read operation) then, read register 114 (55-48) // if bit 55 is 1, restart (reread) from this register read register 115 (47-40) read register 116 (39-32) read register 117 (31-24) read register 118 (23-16) read register 119 (15-8) read register 120 (7-0)
micrel, inc. ks8995ma/fq october 2011 71 m9999-102611-3.0 mib counters the mib counters are provided on per-port basis. the indi rect memory is as detailed in the following table(s). offset counter name description 0x0 rxloprioritybyte rx lo-priority (def ault) octet count including bad packets. 0x1 rxhiprioritybyte rx hi-priorit y octet count including bad packets. 0x2 rxundersizepkt rx undersize packets w/good crc. 0x3 rxfragments rx fragment packets w/bad crc, symbol errors or alignment errors. 0x4 rxoversize rx oversize packets w/good crc (max: 1536 or 1522 bytes). 0x5 rxjabbers rx oversize packets w/either crc errors, alignment errors, or symbol errors (depends on max packet size setting) or rx packets longer than 1916b only. 0x6 rxsymbolerror rx packets w/ invalid data symbol and legal preamble, packet size. 0x7 rxcrcerror rx packets within (64,1522) bytes w/an integral number of bytes and a bad crc (upper limit depends on max packet size setting). 0x8 rxalignmenterror rx packets within (64,1522) bytes w/a non-int egral number of bytes and a bad crc (upper limit depends on max packet size setting). 0x9 rxcontrol8808pkts the number of mac control frames received by a port with 88-08h in ethertype field. 0xa rxpausepkts the number of pause frames received by a por t. pause frame is qualified with ethertype (88-08h), da, control opcode (00-01), data lengt h (64b min), and a valid crc. 0xb rxbroadcast rx good broadcast packets (not including errored broadcast packets or valid multicast packets). 0xc rxmulticast rx good multicast packets (not including mac cont rol frames, errored multicast packets or valid broadcast packets). 0xd rxunicast rx good unicast packets. 0xe rx64octets total rx packets (bad packets included) that were 64 octets in length. 0xf rx65to127octets total rx packets (bad packets incl uded) that are between 65 and 127 octets in length. 0x10 rx128to255octets total rx packets (bad packets incl uded) that are between 128 and 255 octets in length. 0x11 rx256to511octets total rx packets (bad packets incl uded) that are between 256 and 511 octets in length. 0x12 rx512to1023octets total rx packets (bad packets incl uded) that are between 512 and 1023 octets in length. 0x13 rx1024to1522octets total rx packets (bad packets included) that are between 1024 and 1522 octets in length (upper limit depends on max packet size setting). 0x14 txloprioritybyte tx lo-priority good octet count, including pause packets. 0x15 txhiprioritybyte tx hi-priority go od octet count, including pause packets. 0x16 txlatecollision the number of times a collision is det ected later than 512 bit-times into the tx of a packet. 0x17 txpausepkts the number of pause frames transmitted by a port. 0x18 txbroadcastpkts tx good broadcast packets (not incl uding errored broadcast or valid multicast packets). 0x19 txmulticastpkts tx good multicast packets (not includi ng errored multicast packets or valid broadcast packets). 0x1a txunicastpkts tx good unicast packets. 0x1b txdeferred tx packets by a port for which t he 1st tx attempt is delayed due to the busy medium. 0x1c txtotalcollision tx tota l collision, half-duplex only. 0x1d txexcessivecollision a count of frames for which tx fails due to excessive collisions. 0x1e txsinglecollision successfully tx frames on a port for which tx is inhibited by exactly one collision. 0x1f txmultiplecollision successfully tx frames on a port for which tx is inhibited by more than one collision.
micrel, inc. ks8995ma/fq october 2011 72 m9999-102611-3.0 address name description mode default for port 2, the base is 0x20, same offset definition (0x20-0x3f) for port 3, the base is 0x40, same offset definition (0x40-0x5f) for port 4, the base is 0x60, same offset definition (0x60-0x7f) for port 5, the base is 0x80, same offset definition (0x80-0x9f) format of per port mib counters (16 entries) 31 overflow 1, counter overflow. 0, no counter overflow. ro 0 30 count valid 1, counter value is valid. 0, counter value is not valid. ro 0 29 ? 0 counter values counter value. ro 0 offset counter name description 0x100 port1 tx drop packets tx packets dropped due to lack of resources. 0x101 port2 tx drop packets tx packets dropped due to lack of resources. 0x102 port3 tx drop packets tx packets dropped due to lack of resources. 0x103 port4 tx drop packets tx packets dropped due to lack of resources. 0x104 port5 tx drop packets tx packets dropped due to lack of resources. 0x105 port1 rx drop packets rx packets dropped due to lack of resources. 0x106 port2 rx drop packets rx packets dropped due to lack of resources. 0x107 port3 rx drop packets rx packets dropped due to lack of resources. 0x108 port4 rx drop packets rx packets dropped due to lack of resources. 0x109 port5 rx drop packets rx packets dropped due to lack of resources. address name description mode default format of all port dropped packet mib counters 30-16 reserved reserved. n/a n/a 15-0 counter values counter value. ro 0 note: all port dropped packet mib counters do not indica te overflow or validity; therefore th e application must keep track of overflo w and valid conditions.
micrel, inc. ks8995ma/fq october 2011 73 m9999-102611-3.0 mib counter read examples (1) mib counter read (read port 1 rx 64 counter) write to register 110 with 0x1c (read mib counters selected) write to register 111 with 0x e (trigger the read operation) then, read register 117 (counter value 31-24) // if bit 31 = 1, there was a counter overflow // if bit 30 = 0, restart (reread) from this register read register 118 (counter value 23-16) read register 119 (counter value 15-8) read register 120 (counter value 7-0) (2) mib counter read (read port 2 rx 64 counter) write to register 110 with 0x1c (read mib counter selected) write to register 111 with 0x2e (trigger the read operation) then, read register 117 (counter value 31-24) //if bit 31 = 1, there wa s a counter overflow //if bit 30 = 0, restart (reread) from this register read register 118 (counter value 23-16) read register 119 (counter value 15-8) read register 120 (counter value 7-0) (3) mib counter read (read port 1 tx drop packets) write to register 110 with 0x1d write to register 111 with 0x00 then, read register 119 (counter value 15-8) read register 120 (counter value 7-0) note: to read out all the counters, the best performance over the spi bus is (160+3) 8 200 = 260ms, where there are 160 registers , 3 overhead, 8 clocks per access, at 5mhz. in the heaviest condition, the byte count er will overflow in 2 minutes. it is recommended that the softwar e read all the counters at least every 30 seconds. the per port mib counters are designed as ?read clear.? a per port mib counter will be cleared after it is accessed. all port dropped packet mib counters are not cleared after they are accessed. the application needs to keep track of overflow and valid conditions on these counters.
micrel, inc. ks8995ma/fq october 2011 74 m9999-102611-3.0 miim registers all the registers defined in this section can be also accessed via the spi interface. note : different mapping mechanisms used for miim and spi. the ?phyad? defined in ieee is assigned as ?0x1? for port 1, ?0x2? for port 2, ?0x3? for port 3, ?0x4? for port 4, and ?0x5? for port 5. the ?regad? supported are 0, 1, 2, 3, 4, 5. address name description mode default register 0: mii control 15 soft reset 1, phy soft reset. 0, normal operation. r/w 0 14 loop back 1, loop back mode (loopback at mac). 0, normal operation. w 0 13 force 100 1, 100mbps. 0, 10mbps. r/w 1 12 an enable 1, auto-negotiation enabled. 0, auto-negotiation disabled. r/w 1 11 power down 1, power down. 0, normal operation. r/w 0 10 phy isolate 1, electrical phy isolation of phy from tx+/tx-. 0, normal operation. r/w 0 9 restart an 1, restart auto-negotiation. 0, normal operation. r/w 0 8 force full duplex 1, full duplex. 0, half duplex. r/w 0 7 collision test not supported. ro 0 6 reserved ro 0 5 reserved ro 0 4 force mdi 1, force mdi. 0, normal operation. r/w 0 3 disable auto mdi/mdi-x 1, disable auto mdi/mdi-x. 0, normal operation. r/w 0 2 disable far end fault 1, disable far end fault detection. 0, normal operation. r/w 0 1 disable transmit 1, disable transmit. 0, normal operation. r/w 0 0 disable led 1, disable led. 0, normal operation. r/w 0
micrel, inc. ks8995ma/fq october 2011 75 m9999-102611-3.0 miim registers (continued) address name description mode default register 1: mii status 15 t4 capable 0, not 100 baset4 capable. ro 0 14 100 full capable 1, 100base-tx full-duplex capable. 0, not capable of 100base-tx full-duplex. ro 1 13 100 half capable 1, 100base-tx half-duplex capable. 0, not 100base-tx half-duplex capable. ro 1 12 10 full capable 1, 10base-t full-duplex capable. 0, not 10base-t full-duplex capable. ro 1 11 10 half capable 1, 10base-t half-duplex capable. 0, 10base-t half-duplex capable. ro 1 10 ? 7 reserved ro 0 6 preamble suppressed not supported. ro 0 5 an complete 1, auto-negotiation complete. 0, auto-negotiation not completed. ro 0 4 far end fault 1, far end fault detected. 0, no far end fault detected. ro 0 3 an capable 1, auto-negotiation capable. 0, not auto-negotiation capable. ro 1 2 link status 1, link is up. 0, link is down. ro 0 1 jabber test not supported. ro 0 0 extended capable 0, not extended register capable. ro 0 register 2: phyid high 15 ? 0 phyid high high order phyid bits. ro 0x0022 register 3: phyid low 15 ? 0 phyid low low order phyid bits. ro 0x1450
micrel, inc. ks8995ma/fq october 2011 76 m9999-102611-3.0 miim registers (continued) address name description mode default register 4: advertisement ability 15 next page not supported. ro 0 14 reserved ro 0 13 remote fault not supported. ro 0 12 ? 11 reserved ro 0 10 pause 1, advertise pause ability. 0, do not advertise pause ability. r/w 1 9 reserved r/w 0 8 adv 100 full 1, advertise 100 full-duplex ability. 0, do not advertise 100 full-duplex ability. r/w 1 7 adv 100 half 1, advertise 100 half-duplex ability. 0, do not advertise 100 half-duplex ability. r/w 1 6 adv 10 full 1, advertise 10 full-duplex ability. 0, do not advertise 10 full-duplex ability. r/w 1 5 adv 10 half 1, advertise 10 half-duplex ability. 0, do not advertise 10 half-duplex ability. r/w 1 4 ? 0 selector field 802.3 ro 00001 register 5: link partner ability 15 next page not supported. ro 0 14 lp ack not supported. ro 0 13 remote fault not supported. ro 0 12 ? 11 reserved ro 0 10 pause link partner pause capability. ro 0 9 reserved ro 0 8 adv 100 full link partner 100 full capability. ro 0 7 adv 100 half link partner 100 half capability. ro 0 6 adv 10 full link partner 10 full capability. ro 0 5 adv 10 half link partner 10 half capability. ro 0 4 ? 0 reserved ro 00001
micrel, inc. ks8995ma/fq october 2011 77 m9999-102611-3.0 absolute maximum ratings (1) supply voltage (v ddr , v ddap , v ddc ). ............................... ? 0.5v to + 2.4v (v ddat , v ddio ) ......................................... ? 0.5v to + 4.0v input voltage ................................................ ? 0.5v to + 4.0v output voltage ............................................. ? 0.5v to + 4.0v lead temperature (sol dering, 10s) ............................ 260c storage temperature (t s ) ......................... ? 55c to + 150c operating ratings (2) supply voltage (v ddar , v ddap , v ddc ) ............................... +1.7v to +1.9v (v ddat ) ................................................ +3.15v to +3.45v (v ddio ) ................................................ +3.15v to +3.45v ambient temperature (t a ) ................................................... commercial ............................................... 0c to +85c industrial ............................................... ?40c to +85c package thermal resistance (3) pqfp ( ja ) ? no air flow ............................. 42.91c/w pqfp ( ja ) ? no air flow ............................... 19.6c/w electrical characteristics (4, 5) symbol parameter condition min. typ. max. units 100base-tx operation?all ports 100% utilization i dx 100base-tx (transmitter) v ddat 20 28 ma i ddc 100base-tx (digital core/pll+ analog rx) v ddc , v ddap , v ddar 157 230 ma i ddio 100base-tx (digital io) v ddio 17 30 ma 10base-t operation ?all ports 100% utilization i dx 10base-t (transmitter) v ddat 15 25 ma i ddc 10base-t (digital core + analog rx) v ddc , v ddap 102 180 ma i ddio 10base-t (digital io) v ddio 6 15 ma auto-negotiation mode i dx 10base-t (transmitter) v ddat 25 40 ma i ddc 10base-t (digital core + analog rx) v ddc , v ddap 108 180 ma i ddio 10base-t (digital io) v ddio 17 20 ma ttl inputs v ih input high voltage +2.0 v v il input low voltage +0.8 v i in input current (excluding pull-up/pull-down) v in = gnd ~ v ddio ?10 10 a ttl outputs v oh output high voltage i oh = ?8ma +2.4 v v ol output low voltage i ol = 8ma +0.4 v i oz output tri-state leakage v in = gnd ~ v ddio 10 a notes: 1. exceeding the absolute maximum rating may damage the device. 2. the device is not guaranteed to functi on outside its operating rating. unused inputs must always be tied to an appropriate l ogic voltage level (ground to v dd ). 3. no heat spreader in package. the thermal junction-to-ambient ( ja ) and the thermal junction-to-case ( jc ) are under air velocity 0m/s. 4. specification for packaged product only. a single port?s transformer consumes an additional 40ma (approximately) for 100base -tx and 59ma for 10base-t. 5. measurements were taken with operating ratings.
micrel, inc. ks8995ma/fq october 2011 78 m9999-102611-3.0 electrical characteristics (4, 5) (continued) symbol parameter condition min. typ. max. units 100base-tx transmit (measured diffe rentially after 1:1 transformer) v o peak differential output voltage 100 ? termination on the differential output 0.95 1.00 1.05 v v imb output voltage imbalance 100 ? termination on the differential output 2 % t r t t rise/fall time 3 5 ns rise/fall time imbalance 0 0.5 ns duty cycle distortion 0.5 ns overshoot 5 % v set reference voltage of i set 0.5 v output jitters peak-to-peak 0.7 1.4 ns 10base-t receive v sq squelch threshold 5mhz square wave 400 mv 10base-t transmit (measured different ially after 1:1 transformer) v ddat = 3.3v v p peak differential output voltage 100 ? termination on the differential output 2.5 v jitters added 100 ? termination on the differential output 16 ns rise/fall times 28 30 ns
micrel, inc. ks8995ma/fq october 2011 79 m9999-102611-3.0 timing diagrams figure 13. eeprom interface input receive timing diagram figure 14. eeprom interface output transmit timing diagram symbol parameter min. typ. max. units t cyc1 clock cycle 16384 ns t s1 set-up time 20 ns t h1 hold time 20 ns t ov1 output valid 4096 4112 4128 ns table 10. eeprom timing parameters
micrel, inc. ks8995ma/fq october 2011 80 m9999-102611-3.0 timing diagrams (continued) figure 15. sni input timing figure 16. sni output timing symbol parameter min. typ. max. units t cyc2 clock cycle 100 ns t s2 set-up time 10 ns t h2 hold time 0 ns t o2 output valid 0 3 6 ns table 11. sni timing parameters
micrel, inc. ks8995ma/fq october 2011 81 m9999-102611-3.0 timing diagrams (continued) figure 17. mac mode mii timing ? data received from mii figure 18. mac mode mii timing ? data transmitted from mii symbol parameter 10base-t/100base-tx min. typ. max. units tcyc3 clock cycle 400/40 ns ts3 set-up time 10 ns th3 hold time 5 ns tov3 output valid 3 9 25 ns table 12. mac mode mii timing parameters
micrel, inc. ks8995ma/fq october 2011 82 m9999-102611-3.0 timing diagrams (continued) figure 19. phy mode mii timing ? data received from mii figure 20. phy mode mii timing ? data transmitted from mii symbol parameter 10baset/100baset min. typ. max. units tcyc4 clock cycle 400/40 ns ts4 set-up time 10 ns th4 hold time 0 ns tov4 output valid 10 20 25 ns table 13. phy mode mii timing parameters
micrel, inc. ks8995ma/fq october 2011 83 m9999-102611-3.0 timing diagrams (continued) figure 21. spi input timing symbol parameter min. typ. max. units f c clock frequency 5 mhz t chsl spis_n inactive hold time 90 ns t slch spis_n active set-up time 90 ns t chsh spis_n active hold time 90 ns t shch spis_n inactive set-up time 90 ns t shsl spis_n deselect time 100 ns t dvch data input set-up time 20 ns t chdx data input hold time 30 ns t clch clock rise time 1 s t chcl clock fall time 1 s t dldh data input rise time 1 s t dhdl data input fall time 1 s table 14. spi input timing parameters
micrel, inc. ks8995ma/fq october 2011 84 m9999-102611-3.0 timing diagrams (continued) figure 22. spi output timing symbol parameter min. typ. max. units f c clock frequency 5 mhz t clqx spiq hold time 0 0 ns t clqv clock low to spiq valid 60 ns t ch clock high time 90 ns t cl clock low time 90 ns t qlqh spiq rise time 50 ns t qhql spiq fall time 50 ns t shqz spiq disable time 100 ns table 15. spi output timing parameters
micrel, inc. ks8995ma/fq october 2011 85 m9999-102611-3.0 timing diagrams (continued) figure 23. reset timing symbol parameter min. typ. max. units t sr stable supply voltages to reset high 10 ms t cs configuration set-up time 50 ns t ch configuration hold time 50 ns t rc reset to strap-in pin output 50 ns table 16. reset timing parameters
micrel, inc. ks8995ma/fq october 2011 86 m9999-102611-3.0 reset circuit diagram micrel recommends the following discrete reset circuit as shown in figure 24 when powering up the ks8895ma device. for the application where the reset circuit signal comes from another device (e.g., cpu, fpga, etc), we recommend the reset circuit as shown in figure 25. figure 24. recommended reset circuit figure 25. recommended circuit for interfacing with cpu/fpga reset at power-on-reset, r, c, and d1 provide the necessary ramp ri se time to reset the micrel device. the reset out from cpu/fpga provides warm reset after power up.
micrel, inc. ks8995ma/fq october 2011 87 m9999-102611-3.0 selection of isolation transformer (1) one simple 1:1 isolation transformer is needed at the line in terface. an isolation transformer with integrated common- mode choke is recommended for exceeding fcc requirements. the following table gives recommended transformer characteristics. characteristics name value test condition turns ratio 1 ct : 1 ct open-circuit inductance (min.) 350h 100mv, 100khz, 8ma leakage inductance (max.) 0.4h 1mhz (min.) inter-winding capacitance (max.) 12pf d.c. resistance (max.) 0.9 ? insertion loss (max.) 1.0db 0mhz to 65mhz hipot (min.) 1500vrms note: 1. the ieee 802.3u standard for 100base-tx assumes a transformer lo ss of 0.5db. for the transmit line transformer, insertion lo ss of up to 1.3db can be compensated by increasing the line drive current by means of reducing the iset resistor value. the following transformer vendors provide com patible magnetic parts for micrel?s device. 4-port integrated auto mdix number of ports single port auto mdix number of ports vendor part vendor part pulse h1164 yes 4 pulse h1102 yes 1 bel fuse 558-5999-q9 yes 4 bel fuse s558-5999-u7 yes 1 ycl ph406466 yes 4 ycl pt163020 yes 1 transpower hb826-2 yes 4 transpower hb726 yes 1 delta lf8731 yes 4 delta lf8505 yes 1 lankom sq-h48w yes 4 lankom lf-h41s yes 1 table 17. qualified magnetic vendors
micrel, inc. ks8995ma/fq october 2011 88 m9999-102611-3.0 package information 128-pin pqfp (pq)
micrel, inc. ks8995ma/fq october 2011 89 m9999-102611-3.0 micrel, inc. 2180 fortune drive san jose, ca 95131 usa tel +1 (408) 944-0800 fax +1 (408) 474-1000 web http://www.micrel.com micrel makes no representations or warranties with respect to t he accuracy or completeness of the information furnished in this data sheet. this information is not intended as a warranty and micrel does not assume responsibility for it s use. micrel reserves the right to change circuitry, specifications and descriptions at any time without notice. no license, whether expre ss, implied, arising by estoppel or other wise, to any intellectual property rights is granted by this document. except as provided in micrel?s terms and conditions of sale for such products, mi crel assumes no liability whatsoever, and micrel disclaims any express or implied warranty relating to the sale and/or use of micrel products including l iability or warranties relating to fitness for a particular purpose, merchantability, or infringement of an y patent, copyright or other intellectual p roperty right. micrel products are not designed or authori zed for use as components in life support app liances, devices or systems where malfu nction of a product can reasonably be expected to result in pers onal injury. life support devices or system s are devices or systems that (a) are in tended for surgical implant into the body or (b) support or sustain life, and whose failure to perform can be reasonably expected to result in a significan t injury to the user. a purchaser?s use or sale of micrel produc ts for use in life support app liances, devices or systems is a purchaser?s own risk and purchaser agrees to fully indemnify micrel for any damages resulting from such use or sale. ? 2010 micrel , incor p orated.


▲Up To Search▲   

 
Price & Availability of KSZ8995FQ

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X